I have a secret word (example. dirtydawg)
And using PHP I want to create the uppercase MD5 value of the ASCII equivalent of the secret word.
How do I do this????
For each ad on my site, I would like a box that shows the number of views it has (similar to this site).
How would I capture the number of page views an ad has? Is there a function that does this in PHP?
hi,
I need to incrase the php file upload limit of 8MB on an IIS server.
I don't have access to configuration files, so I was wondering how to increase it (I need something similar to .htaccess for apache..
thanks
HI I do have image files in directory which is downloaded from several resources..
if I do have name of that image then how can I check existence of the same with PHP
I am starting my first "programming" project in PHP making some sort of web application that give the linux program, Motion, a decent web interface.
Anyways, I was curious as to how when real applications are programmed, do y'all go for a class for each view or one single class for the application altogether? I know this is more of a preference thing, I was just curious as to how it happens in real software.
I am saving personal information in PHP page.when user click submit it saves but user can go back in submit information page through browser back button.Hoe can I expire my previous page??
I'm having a hard time installing zend_debugger, somehow the installed version doesn't match with my php.
Is there a repository for all versions of zend_debugger?
I would like to do something like this:
abstract class Foo
{
public function __construct()
{
echo 'This is the parent constructor';
}
abstract function __construct();
}
class Bar extends Foo
{
// constructor is required as this class extends Foo
public function __construct()
{
//call parent::__construct() if necessary
echo 'This is the child constructor';
}
}
But I get a fatal error when doing this:
Fatal error: Cannot redeclare Foo::__construct() in Foo.php on line 8
Is there another way to ensure child classes have a constructor?
How do I count the minutes and hours since a member registered from there registration date that is stored in my MySQL database as datetime using PHP & MySQL.
Here is what I have so far.
date('F j, Y g:i:s A', strtotime($row['rdate']))
I am trying to create a blog using blogspot. It seems it is not possible to upload anything other than image files to blogspot. I want to upload a PHP file. I managed to upload the file to google sites, but it is coming as downloadable there instead of executing.
Is there a work-around here other than buying my own server space?
I have an XML ISO-8859-1 page, in which I have to output symbols like é.
If I output é it errors out. é works just fine.
So, what PHP function should I use to transform é to é
I can't move to utf-8 (as I assume some will suggest and rightfully so) This is a huge, legacy code.
Hi,
I have a simple question. Is it okay to use array without single or double quotion like $array[key]? I thought it is bad because PHP look for constant first if I don't use single or doulbe quotion. One of my colleagues told me that it does not matter.
WHat do you guys think?
How can I go about adding users/number, changing things from PHP(or python) on an asterisk server?
ps. also are there any better ways to get the current asterisk settings, users, numbers other than scraping the config files?
I have an XML ISO-8859-1 page, in which I have to output symbols like é.
If I output é it errors out. é works just fine.
So, what PHP function should I use to transform é to é
I can't move to utf-8 (as I assume some will suggest and rightfully so) This is a huge, legacy code.
Quick question: One can set the path where a cookie is valid, but is it also possible to get (read) this path from the cookie (in PHP)?
Or else: is it possible to extend a cookie's time, without knowing what path it's on (but keeping the path the same)?
This code is being used to parse email, it's stored as a table in a mySQL database. I believe it's PHP code. What does the (.+) do?
/A new order has been successfully placed through(.+)Name:(.+)Company:(.+)Email:(.+)Address 1(.+)Order ID:(.+)Date:(.+)Payment Type:(.+)Order Status:(\s*)Accepted(.*)\n(.+)\$([\d\.]+)\s+X/si
Thanks, super-brainiacs!
I am using exec() inside a a script that runs as a daemon and forks child processes using the pear class Net_Server.
I am getting a strange issue whereby the return code (the third param of of exec) comes back as -1. When I run the command on the command line, or with exec in a normal php script the return code is 0 as it should be. Anyone have any idea why this is happening, and how to fix it?