Jump to content

Search the Community

Showing results for tags 'debugging'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Calendars

  • Community Calendar

Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 6 results

  1. Strange Warning on a PHP Script

    Dear all, I have the following code for storing an image in and fetching it from a MySQL DB: <html> <body> <form action="index.php" method="POST" enctype="multipart/form-data"> File: <input type="file" name="image"> <input type="submit" value="upload"> </form> <?php mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("code_new") or die(mysql_error()); $file = $_FILES['image']['tmp_name']; if(!isset($file)) { echo 'Please select a file'; } else { $image = addslashes(file_get_contents($_FILES['image']['tmp_name'])); $image_name = addslashes($_FILES['image']['name']); $image_size = getimagesize($_FILES['image']['tmp_name']); if ($image_size == FALSE) echo 'This is not an image.'; else { if(!$insert = mysql_query("INSERT INTO lash VALUES ('', '$image_name', '$image')")) { echo 'Problem uploading the image.'; } else { $lastid = mysql_insert_id(); echo "Image uploaded.<p />Your Image:<p /><img src=get.php?id=$lastid>"; } } } ?> </body> </html> No need to include get.php and the DB. To test the if statement in red, I attempted to upload a pdf file and it functioned well. It also uploaded various images. But when I attempted to upload a docx file (word), the following occurred: Warning: POST Content-Length of 9069583 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 What is the meaning of this warning and what are the Unknown and line 0?
  2. Vague Notice

    Hi, This block code is from W3schools tutorials: <?php $cars = array("Volvo", "BMW", "Toyota"); $arrlength = count($cars); for($x = 0; $x <= $arrlength; $x++) { echo $cars[$x]; echo "<br>"; } ?> The original block was without the equal sign in $x <= $arrlength; I have added the equal sign to see what would happen. I got the same result but followed with: Notice: Undefined offset: 3 in C:\xampp\htdocs\Testing\testing.php on line 14 I would appreciate it if someone would explain why I am getting this notice and its meaning. I thought the loop will stop and give the same result without any notice when it hits no value for the equal sign.
  3. Denail to Load PHP Pages

    Hi. I attempted to load a couple of PHP pages, one of which is the index page, but the message I got is below. The index page is also open in another tab; when refreshed it runs perfectly, but loading it afresh is deniable. Both Apache and MySQL are running; I turned them off and on again and ensured that skype is also off and no firewall set up is changed or updated. I would appreciate if someone could advise what could be the problem and what is the solution? Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404 localhostApache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9
  4. Notice Error

    Dear all: I have the following php line of code: <?php $var2 = 5; ?> += : <?php $var2 += 4; echo var2; ?><br /> Because of the lack of the dollar sign before var2 following the echo, it spat out the following error: += : Notice: Use of undefined constant var2 - assumed 'var2' in C:xampphtdocsTutorialsPHPw3schoolsintegers.php on line 29var2 My understanding prior to this was that Notice means something bad in the code but it is not an error and would not stop the code from executing. But the code has not executed in this example. Since the code is not executing, I am not seeing the real difference between Notice and other forms of errors that prevent codes from executing. Any clarification please?
  5. Rookie at javascript

    How can I write my script to a web console (firefox) only when a create a boulean variable called debug set to equal true?
  6. Gallery Debugging help?

    I'm using a ZooEffect Gallery, which is great-except for two things; A) The images do not read links-despite them being a gallery option. You can't seem to change the font within the gallery-I tried being adjusting the CSS-to no avail, I put it back and then after a few days, ZooEffect got back to me with a solution, Which also didn't work. Most people seem to be able to pinpoint these issues using Safari Developer or FireBug. Can anybody pinpoint for me or at least tell me how I would do this? ThanksLauren
×