Jump to content
Old threads will finally start getting archived ×

TLawrence

Members
  • Posts

    36
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Male
  • Location
    Michigan, USA

TLawrence's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Arrgghhh! I figured it out. After you asked what error_reporting said in the phpinfo(), I decided to change it and see what happened. For some reason it was set to E_ALL & E_NOTICE & E_DEPRECATED. I changed this to just E_ALL (which I thought it was already set to), and now my errors are showing up! Thanks for the help Pikachu2000.
  2. error_reporting is 0 display_errors is On
  3. Any time I get a PHP error, all I see is a blank screen. Errors/notices will not display to the screen or save to a log file. I'm running XAMPP with PHP 5.3.1. I used to run PHP on IIS and had no problems displaying errors. Now that I'm on Apache (still running on a Windows machine), I can't get any error or notice to display on the screen or saved to a log file. Here's what I've checked... 1) Checked my php.ini file location...pointing to the correct file. 2) In php.ini, display_error, display_startup_errrors are on 3) error_reporting set to E_ALL I can't figure out why errors won't display? I've tried the following code, purposely leaving off the "; on the echo to create an error. All I get is a blank screen, no indication of an error. <?php echo "testing ?> What am I missing??? Any help would be greatly appreciated!
  4. Can anyone help me figure out how to create directories and copy files to a shared drive? The path I'm using seems to be correct since I no longer get a "path does not exist" error, but I'm getting 'permission denied' errors whenever I attempt to make a directory on the shared drive or copy a file to it via PHP. I've read that the web server needs to be set up or treated as a user on the system? Can someone explain how I go about doing this? Or if this is not the solution, can someone point me in the right direction? I'm using an IIS 5 server. Thanks in advance.
  5. If you're all set, be sure to mark this post "solved"!
  6. Here's the CSS I use... a.popup { position:relative; z-index:24; color:#000000; text-decoration:none; } a.popup:hover {z-index:25; background-color:#FFCCD8 } a.popup span {display:none; } a.popup:hover span { display:block; position:absolute; top:35px; left:15px; width:200px; padding:3px; border:1px solid #000000; background-color:#FFCCCF; color:#000; } And here's how to use it in your code... <a class='popup' href='http://thelink'>LINK<span>Put the description here.</span></a> This allows you to add a description for any link which pops up when you roll over the link. You can customize the colors, etc. This is just an example from actual code I used in a project.
  7. The easiest way for me to accomplish this is using CSS. What have you tried so far? Any code to look at?
  8. First of all, understand that the javascript sort() function sorts lexographically (alphabetically). That's why the sortNumber function was added...to sort the numbers numerically, not alphabetically. On to the function... The function returns the difference between 'a' and 'b', the two values passed. It works because whenever 'a' is less than 'b', a negative value is returned which results in the smaller elements always appearing to the left of the larger ones (ascending). When such a function is passed into array.sort(), the array elements are sorted based on the relationship between each pair of elements 'a' and 'b' and the function's return value. This exact function along with additional information about the sort() function is explained in greater detail at http://www.javascriptkit.com/javatutors/arraysort.shtml
  9. I don't have access to the database in question, but I can look at my own local databases...I see what you're talking about. Thanks for the tip, this definitely helps!
  10. You bring up a good point. If the warning isn't harming anything, than just ignore it. I know that's not good practice, but it's a good temporary fix until we figure out the real problem. Thanks for the help!
  11. So more than likely something DID change on the client's side regarding the database, even though they're telling me nothing changed? Can you explain the difference between a default database and master database? What are their purposes and when/how are they created? Wouldn't their IT person know if a default database no longer existed (db dropped)? Or if permissions changed?
  12. I have a client who just recently started receiving the following error. "Warning: mssql_connect() [function.mssql-connect.html]: message: Cannot open user default database. Using master database instead. (severity 11) in filename on line 2" According to them, nothing has changed regarding their database, so what would typically cause this error to occur? This is the first project I've done using MSSQL, so I'm not that familiar with the database software and I've never seen this error before.
  13. I have a dilemma on my hands. I built an application for a client several years back using PHP and an MS Access database (odbc). It's been working fine up until a couple weeks ago. All of a sudden the database will no longer update. The application allowed admins to add users and it also tracked progress in an online course. Neither one of these functions work now. I asked them to check the PHP error log for anything unusual...nothing. They said the only error they've been seeing is the following: Faulting application w3wp.exe, version 7.0.6001.18000, time stamp 0x47919413, faulting module ntdll.dll, version 6.0.6001.18000, time stamp 0x4791a7a6, exception code 0xc0000374, fault offset 0x000b015d, process id 0xa60, application start time 0x01c940e487cd7537. I know they have recently upgraded their server to IIS 7 and I believe they have PHP 5.2.4 installed. Has anyone come across a similar situation where a database will no longer update? Or has anyone come across the above error? Is this error even related to the problem? Any help would be appreciated.
  14. Ok, thanks. Yes, the web server is IIS. I wasn't sure if it wrote errors to the event log or not...and I didn't want to send my client a wild goose chase looking for something that might not be there. Thanks again!
  15. I have a client who says their database stopped updating a month or two ago. They don't receive any visible errors, it just doesn't update. I have my ideas as to what the problem is, but the first thing I wanted to do was check the PHP error log to see if the problem is related to a permissions issue (can't write to the database). In the php.ini file, they're using errror_reporting=E_ALL and they have error logging turned on, but they haven't specified a location. (;error_log = filename). Where is the default location of the error log if a location isn't specified? Would it be in the PHP folder? Or if there's no location specified, is an error log even created? Thanks in advance for any help you can offer. tlawrence
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.