Re: Calling an object from another in PHP using construct Programming Web Development by aishamushtaq To avoid infinite loops when including objects of multiple classes in PHP OOP: 1. Use dependency injection to pass objects as dependencies. 2. Review class design for circular dependencies. 3. Refactor classes to break cyclic dependencies if necessary. Re: Calling an object from another in PHP using construct Programming Web Development by Dani I feel like you're going to end up in an infinite loop if you create a new A from the constructor function of class A. Same with class B having `new B()` in its contruxtor, and and C having `new C()` in its constructor. Re: Calling an object from another in PHP using construct Programming Web Development by Dani Oh, sorry. I didn't see the post by pritaeas. DropDown data shuffling issue Programming Web Development by akkbkht … Dd6 against Agnet6. The table format is shown in the image attached. I am having problem that how I can achieve… Re: DropDown data shuffling issue Programming Web Development by akkbkht Sorry. Forgot to attach the image in the main description. ![ITSDRosterError.jpg](https://static.daniweb.com/attachments/3/977be3ec0324088eab80fc13dd3b96fa.jpg) Re: Dead Internet Theory: Is the Web Dying? Community Center by m_624 "Dead Internet Theory" is an idea that says the internet is becoming less genuine and less alive. Here's a simple explanation: The theory suggests that: Bots and Fake Content: A lot of what we see online is created by bots or automated programs, not real people. This includes social media posts, comments, and even articles. … Re: Dead Internet Theory: Is the Web Dying? Community Center by Reverend Jim Seems like an extension of Sturgeon's Law which states "90% of everything is crap". Re: APIs and SDKs in a PHP project Programming Web Development by Dani In the context of PHP, an API's SDK is a PHP-based library that is used to access what is typically a JSON-based API. Composer is a dependency manager for PHP, but you typically don't *need* to use it. What API are you trying to connect to? Calling an object from another in PHP using construct Programming Web Development by FarrisFahad How can I include objects in each other using PHP OOP? I have 3 classes all classes make use of one another. I am trying to call them on `__construct` but it's creating an infinite calls to one another. How can I solve this? Re: Calling an object from another in PHP using construct Programming Web Development by jkon … a construction method . Lets play a bit with it in PHP: class A { private $obj; public function __construct() { $this->obj… Re: APIs and SDKs in a PHP project Programming Web Development by pritaeas > I am also using PHP procedural programming and I noticed that these SDKs use OOP. > Can someone help me make my first API call using an SDK? Do you understand OOP and can you write code using it? If so, continue to the next step. I'd advise against the other way around. Re: Calling an object from another in PHP using construct Programming Web Development by FarrisFahad … need to know now. I am new to OOP in PHP. Is it good to call a class within a class… Re: Calling an object from another in PHP using construct Programming Web Development by pritaeas … described by jkon. I'd go for a container class: ```php class Container { private $A; private $B; private $C; public function…://www.daniweb.com/programming/web-development/tutorials/437592/introduction-to-php-s-object-orientation Re: HTML Image Embedding Issue Programming Web Development by Steve_89 …**: Make sure the file extension of your image is correct. If your image is a JPEG, the extension should be …matches exactly. 4. **Folder Structure**: Double-check that your image is indeed in the "images" folder and that… HTML file. 5. **File Permissions**: Ensure that the image file has appropriate permissions set to be accessed by your… HTML Image Embedding Issue Programming Web Development by khan zain …the code I'm using. Any insights on why the image isn't displaying as expected?"" <!DOCTYPE … initial-scale=1.0""> <title>Image Woes</title> </head> <body&…lt;img src=""images/my-image.jpg"" alt=""My Image""> </body>… Re: Calling an object from another in PHP using construct Programming Web Development by pritaeas Show some code of how you expect it to work. Re: Calling an object from another in PHP using construct Programming Web Development by Dani I'm not understanding your question. You can definitely create objects within the methods of other classes. As pritaeas says, please post some code so we can understand better. Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner …all, e.g. error in the 1st running PHP file). Adding the semi-colon at end of line…screen display HTML file (2nd running file after the PHP) was. So I started adding the new code …bit by bit to the original PHP file to see where it would crash. First… be difficult as using 1 & 1/Ionos PHP files. What is coding to access error logs or… Re: Online subission forms not sending emails of submitted info Programming Web Development by Biiim …; require 'includes/PHPMailer/src/Exception.php'; require 'includes/PHPMailer/src/PHPMailer.php'; require 'includes/PHPMailer/src/SMTP.php'; and the second is mine… require DNS access. EDIT2: You could also try taking the PHP out of the try - catch block to see if that… Display specific html tag on specific pages Programming Web Development by ianhaneybs … want to display different html tags on the php page they are visiting, for example on the… into that code, the homepage is called index.php <?php if ($_SERVER["SCRIPT_NAME"] == '/computer-shop…-basildon.php') { echo '<section class="testimonal-two … Re: Online subission forms not sending emails of submitted info Programming Web Development by Chris_103 It seems like you're experiencing issues with PHP-based email functionality, where submissions are not triggering emails to be sent. Let's dive into the code snippet you provided and see if we can identify any potential issues or improvements. Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner … asked ? So I'm seeing if in the back end PHP file, the email address in question is not anything entered… Re: Display specific html tag on specific pages Programming Web Development by ianhaneybs …$_SERVER['REQUEST_URI']; if($currentpage=="/" || $currentpage=="/index.php" || $currentpage=="/index" || $currentpage==""…; || $currentpage=="/computer-shop-basildon.php" || $currentpage=="/computer-shop-basildon" ) {… Re: Display specific html tag on specific pages Programming Web Development by Dani … so it doesn't look so messy: <?php // Retrieve the current page $currentpage = $_SERVER['… Array of pages $array = array( '/', '/index.php', '/index', '', '/computer-shop-basildon.php', '/computer-shop-basildon' ); // If the $currentpage … Generate Stunning AI Images for Free Using Diffusion Models Programming Computer Science by usmanmalik57 … a wooden room" # run both experts image = base( prompt=prompt, num_inference_steps=n_steps, denoising_end=…;latent", ).images image = refiner( prompt=prompt, num_inference_steps=n_steps, denoising_start=high_noise_frac, image=image, ).images[0] image ``` **Output:** ![image2… Dead Internet Theory: Is the Web Dying? Community Center by Johannes C. … from various angles had already gone viral long before AI image generation was sophisticated enough to deceive us gullible h00mans. However… Re: Video is not the main content of the page Digital Media Digital Marketing Search Engine Strategies by Read a Book But i am generating the JSON code dynamically. If there is no video than i hide the VideoObject tag with if statement. Should i just remove the `itemscope itemtype="http://schema.org/VideoObject"` Re: Video is not the main content of the page Digital Media Digital Marketing Search Engine Strategies by Dani Yes, if the page does not contain video content, then remove `itemscope itemtype="http://schema.org/VideoObject"` I'm so sorry for not responding sooner. I just saw your post now. Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner I just discovered some new information on why the online submission pages weren't sending as during some testing I discovered there was a way for the submitted info to be sent. Here it is. I have online submission pages on 4 websites: RadiantNewHorizonHomes.com, RTO-USA.net, SubterraneanSoundStudio.com and RebHellionRecords.com. Each of these 4 … Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner My 4 domains are all through URL provider IONOS. The question is why does the sender's email address as entered on the front end of the on-line submission form have to have the same ending as the domain name of the site or one of the other 3 or else submitted info fails to send ?