Solved

works in one not in another

Posted on 2006-11-29
6
138 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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…

863 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

24 Experts available now in Live!

Get 1:1 Help Now