ActiveDen

PHP/mySQL forum help needed

2309 posts
  • Has been a member for 4-5 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Beta Tester
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 1 and 9 items
  • United States
  • Referred between 10 and 49 users
theflyingtinman says

Why would a Flash forum (an swf that accesses a mySQL database though a bunch of PHP files) work perfectly when run on my local machine and not work at all (the gui shows up but nothing from the database) when run on the server.

Both instance are coded to use exactly the same PHP files on the server (using an absolute path) but only the instance run locally works .

Any ideas ?

4 years ago
133 posts
  • Has been a member for 5-6 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
  • Lithuania
  • Referred between 10 and 49 users
pauliusuza says

1. Check database name, username and password

2. Check if the hostname you are connecting to is correct (via phpinfo), sometimes “localhost” needs to be replaced by “127.0.0.1” or even by IP of your database server (if it’s on separate machine).

3. Enable PHP debug mode and try to call php files directly, see if they output any errors.

4 years ago
64 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • Canada
  • Referred between 50 and 99 users
EgoAnt says

Depending on how the PHP was coded it could also be a PHP version or settings issue.

4 years ago
2309 posts
  • Has been a member for 4-5 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Beta Tester
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 1 and 9 items
  • United States
  • Referred between 10 and 49 users
theflyingtinman says

Thanks guys,

I got it sorted out. It wasn’t server issues after all. It was my own local HTTP web-filtering proxy causing it. I haven’t yet figured out exactly what it was filtering out that caused the problem but when I ran the swf locally I used either the Flash IDE or Flash player, which it doesn’t proxy – so no problem.

4 years ago
by
by
by
by
by