Jump to content

Search the Community

Showing results for tags 'learning'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 4 results

  1. Hello everyone My name is Gary Taylor, I am learning PHP now, getting advance code in PHP now, but still struggle to complete. I hope you will happy to help me to solve my problem in PHP. It is nice to meet you all! Have a great day!
  2. Hi, I'm Drew. I'm a web developer, primarily on the WordPress platform. I'm not a proficient PHP programmer but I can and have edited lots of PHP code to improve my sites. So, in a way, I'm learning PHP...the hard way. As probably is the case with most users, I'm here becuase I'd like help with some code and because I want to fasttrack my PHP education. I'll get to that eventually, this is just me introducing myself to the community. Best regards.
  3. Hi, everyone. I'm having some trouble finding tutorial projects for PHP Functions. Can anyone point me in the right direction if you know of any? I apologize if this is the wrong category to post in for my particular question.
  4. <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { foreach($_REQUEST as $key => $val) { echo $key, " : ", $val, "<br />"; } } else { ?> <form action="test.php" method="post"> <label for="username">Username:</label> <input type="text" name="username" /> <label for="email">Email:</label> <input type="text" name="email" /> <input type="submit" value="Register!" /> </form> <?php } // End else statement ?> ------------ <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { // Checks if a file was uploaded without errors if(isset($_FILES['photo']) && is_uploaded_file($_FILES['photo']['tmp_name']) && $_FILES['photo']['error']==UPLOAD_ERR_OK) { // Outputs the contents of $_FILES foreach($_FILES['photo'] as $key => $value) { echo "$key : $value <br />"; } } else { echo "No file uploaded!"; } } else { // If the form was not submitted, displays the form HTML ?> <form action="test.php" method="post" enctype="multipart/form-data"> <label for="photo">User Photo:</label> <input type="file" name="photo" /> <input type="submit" value="Upload a Photo" /> </form> <?php } // End else statement ?> -------------- <?php // Checks if the form was submitted if($_SERVER['REQUEST_METHOD'] == 'POST') { // Checks if a file was uploaded without errors if(isset($_FILES['photo']) && is_uploaded_file($_FILES['photo']['tmp_name']) && $_FILES['photo']['error']==UPLOAD_ERR_OK) { // Checks if the file is a JPG image if($_FILES['photo']['type']=='image/jpeg') { $tmp_img = $_FILES['photo']['tmp_name']; // Creates an image resource $image = imagecreatefromjpeg($tmp_img); // Tells the browser what type of file header('Content-Type: image/jpeg'); // Outputs the file to the browser imagejpeg($image, '', 90); // Frees the memory used for the file imagedestroy($image); } else { echo "Uploaded file was not a JPG image."; } } else { echo "No photo uploaded!"; } } else { // If the form was not submitted, displays the form HTML ?> <form action="test.php" method="post" enctype="multipart/form-data"> <label for="photo">User Photo:</label> <input type="file" name="photo" /> <input type="submit" value="Upload a Photo" /> </form> <?php } // End else statement ?> ----------------- Reading: PHP for the Absolute Beginner Using dreamweaver cs6 and xampp The first thing is a submit form to create an account in the book. I copied it exactly from the book at this point and it still does not work. I get this when I submit the form on localhost " Object not found!The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster. Error 404 10.0.0.3 Apache/2.4.4 (Win32) OpenSSL/1.0.1e PHP/5.5.1" " The book is no help. Second thing is the first part about image uploading, third is the second bit about it. I ended up copying exactly from the book to see if my typing (which was the exact same) did not work. I get on chrome - a little image of a paper with a broken edge, I guess broken file or no file? Firefox - "No file uploaded! No photo uploaded!" They say that it should work in the book. Can someone help? I'm so new to PHP that all my looking on the internet was just looking at things I'm barely familiar with.
×
×
  • 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.