Tags: get php

How much data can be sent via $_GET

Tags: ,

How much data can be sent via $_GET in PHP5? Is there a maximum number of variables, string length etc? Thanks in advance.

Tags: pdo php

Questions about shifting from mysql to PDO

Tags: ,

I have recently decided to switch all my current plain mysql queries performed with php mysql_query to PDO style queries to improve performance, portability and security. I just have some quick …

Why do PHP Array Examples Leave a Trailing Comma?

Tags: , ,

I have seen examples like the following: $data = array( ‘username’ => $user->getUsername(), ‘userpass’ => $user->getPassword(), ’email’ => $user->getEmail(), ); However, …

Can I embed a .png image into an HTML page?

Tags: , , ,

How can I embed a .png file into a blank “file.html” so that when you open that file in any browser you see that image? In this scenario, the image file is not linked to from the HTML, but …


Getting the record ID just added with mysql prepared statements

I’m inserting a record using PDO and saving the result in $result which I use as a boolean $result = $addRecord->execute(); if ($result){ //add successful } else { //add unsuccessful } I’…

Tags: php templates

Using PHP as template language

Tags: ,

Edit: Great points all around, dedicated templating language is obviously the way to go. Thanks! I wrote up this quick class to do templating via PHP — I was wondering if this is easily exploitable …

Tags: php phpmyadmin

phpmyadmin – default to structure instead of browse

Tags: ,

Can I set the default in phpMyAdmin to open in structure instead of browse? thanks

Tags: mysql php

select field information with min time value

Tags: ,

I thought I was doing the right thing but I keep getting the wrong result. I am trying to simply find the id of the entry with the min time, but I am not getting that entry. $qryuserscount1=”…

How do I display exception errors thrown by Zend framework?

Tags: , , ,

I am working with Zend framework and just hate the fact that I seem to encounter hundreds of exception errors like if I try to reference a non existant property of an object my application just dies …

Creating an XML sitemap with PHP

Tags: , ,

I’m trying to create a sitemap that will automatically update. I’ve done something similiar with my RSS feed, but this sitemap refuses to work. You can view it live at http://designdeluge.com/sitemap….