Solved

works in one not in another

Posted on 2006-11-29
6
137 Views
Last Modified: 2012-05-05
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
Comment
Question by:asaidi
6 Comments
 
LVL 22

Expert Comment

by:Ivo Stoykov
ID: 18035667
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
 
LVL 48

Accepted Solution

by:
hernst42 earned 500 total points
ID: 18035754
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
 
LVL 10

Expert Comment

by:sakuya_su
ID: 18035795
copy the script you wrote please
0
 
LVL 5

Expert Comment

by:dasmaer
ID: 18036017
agree... had to diagnose without seeing code.
0
 
LVL 3

Expert Comment

by:NIPPLES
ID: 18041058
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now