Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7091619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:12:31+00:00 2026-05-28T08:12:31+00:00

He is my code: if (function_exists(‘gd_info’)) { $gda = gd_info(); $gd[‘version’] = $gda[‘GD Version’];

  • 0

He is my code:

if (function_exists('gd_info')) {
    $gda = gd_info();
    $gd['version'] = $gda['GD Version'];
    //$gd['num'] = ereg_replace('[[:alpha:][:space:]()]+','',$gda['GD Version']);
    $gd['freetype'] = $gda["FreeType Support"];
    $gd['gif_read'] = $gda["GIF Read Support"];
    $gd['gif_make'] = $gda["GIF Create Support"];
    //$gd['jpg'] = $gda["JPG Support"];
    $gd['png'] = $gda["PNG Support"];

The commented line produced errors:

Function ereg_replace() is deprecated

Undefined index: JPG Support

I am using XAMPP 1.7.7

Anyone knows how to fix this?

What I was trying to achieve is producing thumbnails of jpeg pictures. Now that I commented those lines. I am unable to display the thumbnails.

Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:12:31+00:00Added an answer on May 28, 2026 at 8:12 am

    ereg functions have been deprecated in PHP 5.3 in favor of the PCRE functions. I’m not familiar with ereg syntax, but it looks like it might be equivilant to preg_replace('/[a-zA-Z ()]+/', '', $gda['GD Version']).

    Furthermore, the commented line should read: $gd['jpg'] = $gda["JPEG Support"]; i.e. JPEG with an E.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code in PHP: <?php if (function_exists(insert_audio_player)) {insert_audio_player([audio:|titles=]} ?> Which renders
Ok, so I have this code: //let's say: $period = 30; if (!function_exists('filter_where')) {
I have this code snippet inside a function that checks if an object exists
This code function LoadContent(Id) { alert('Controls/Network/NetworkDetail.aspx?' + rnd() + '&CtlId=' + Id); $.get('Controls/Network/NetworkDetail.aspx?' +
The code: function updateDashboardData() { $.getJSON(includes/system/ajaxDataInterface.php, {recordcount:1}, function(data) { $('.stationContainer').each(function(data) { var bsID =
View this code: function testprecision(){ var isNotNumber = parseFloat('1.3').toPrecision(6); alert(typeof isNotNumber); //=> string }
I have this code: function submitTwice(f){ f.action = 'http://mydomain.com/threevideopage.php'; f.target='name'; f.submit(); } I left
Here is my code: function pauseSound() { var pauseSound = document.getElementById(backgroundMusic); pauseSound.pause(); } I
With this code function someFunction(classParam:Class):Boolean { // how to know if classParam implements some
I have such code: function allValid() { $('input').each(function(index) { if(something) { return false; }

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.