EDIT: Never mind, I just updated to php 5.
Hey all,
I'm currently experimenting with php object interfaces. However, whenever I try to implement one, I get a php error.
interface iTemplate
{
public function setVariable($name, $var);
public function getHtml($template);
}
The error is:Code: Parse error: parse error, unexpected T_STRING in /path/test.php on line 1
What am I doing wrong? If it matters, my server is running php version 4.3.11.
PHP5/Zend 2.0 - Resources
PHP5 Snapshots
Email/MMS to Site
Hey guys. I'm looking for a way for a user to upload images and/or text via their cell phones. It could be MMS but since most phones have email these days, maybe just a way to process email. I've
Include a php
Hello, I'm trying to include a function that shows the recent searches. Example I have index.html-------------------------------------------------------------------------
help with php
It's not displaying or pulling anything out of the database. Code: <html><head><title>Hale's Music World: Inventory Search
PHP hyperlinks generator
HiI need some help to get this done using php:1 - I have few hyperlinks say 500 in format like:<a href="http://domaina.com/1.html"
Fetching array then reversing it
Hi, I have a simple problem, I'll try to explain it as best I can:News entries in my database are ordered from oldest to newest. In order to pull out the last 10 lines I do
Place specific image in html page when specific name is typed.
Hello,Fairly new to PHP and was curious if someone might know how to solve a fairly simple request.I am currently passing the name of an end user (who types their name in a form field) to a URL which
Force download script not handling files with spaces properly
I have a regular old php force download script, uses this code:Code: header("Cache-Control: "); header("Pragma: "); header("Content-type: application/octet-stream");
check if string contain only a-z/A-Z
Is where any way to check if string contains only a-z/A-Z, without writing an array with all possible letters and then looping it.Code: $available = array('a', 'b', 'c, 'd'); //write a-zfor
send() and recv() parameters confusion
On server Side: