Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 148
  • Last Modified:

works in one not in another

Hi
i am new in php ,
i setup php apache and mysql in both home and office,i wrote a script at home that display data from mysql database and it works perfect,i brought the same script at work,it is not working,and my configuration at work is perfect because i can run other script,only the one i brought from home..please there is explication about this issue

Regards

Ahmed

0
asaidi
Asked:
asaidi
1 Solution
 
Ivo StoykovCommented:
Hi asaidi,

as a shot in the dark - check your paths login names/pass and credentials. Quote any errors you've get here and the code where you catch them

Regards

!i!
0
 
hernst42Commented:
make sure you use <?php as opening tags and not only <? compare the output of phpinfo() on your servers, if they differ and which options are different
0
 
sakuya_suCommented:
copy the script you wrote please
0
 
dasmaerCommented:
agree... had to diagnose without seeing code.
0
 
NIPPLESCommented:
agreed plus one more shot in the dark - differing versions of mysql or php is very possible.  there could also be more underlying permissions problems especially if you are not the admin at your office.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now