Web Development

How To Pull Information From Another Website

There are several ways to include information from another website into my website. One of the easiest ways is using the iframe tag: <iframe src=”https://cindycullen.com”>   Your browser doesn’t like iframes </iframe> The iframe tag will pull in the page and show it exactly like it would show that page in my browser window. It basically …

How To Pull Information From Another Website Read More »

How to Pass an Object from PHP to Javascript and Back Again Using JSON

Many times I would like to pass an object from my PHP code to Javascript or from Javascript to PHP. JSON and a couple of PHP and Javascript functions make that easy! JSON is JavaScript Object Notation. Basically, it’s a textual way to represent an object. To demonstrate, I will create a PHP object: <?php …

How to Pass an Object from PHP to Javascript and Back Again Using JSON Read More »

Using PHP's parse_url Function

This is a PHP function that I wish I had known about earlier, so I thought it was worth a mention for today’s Daily Web Tip. parse_url is a function that breaks a url down into it’s parts. <?php print_r(parse_url(‘https://cindycullen.com/example/test.php?id=255#faq1’)) ?> Will give you: Array ( [scheme] => http [host] => cindycullen.com [path] => /example/test.php …

Using PHP's parse_url Function Read More »

Scroll to Top