Search found 106 matches

by LonelyProgrammer
Thu Nov 15, 2007 2:51 pm
Forum: PHP - Code
Topic: Rapid PHP Development tool that is lightweight?
Replies: 4
Views: 673

Rapid PHP Development tool that is lightweight?

Hi all, I haven't been writing PHP for a while and recently got back into the scene. I remembered having to write code for login, authentication, session, cookies and most annoying of all, a dynamic page rendering model. I am wondering if there are any suite of pre-written PHP libraries for mundane ...
by LonelyProgrammer
Sat Jul 21, 2007 10:50 am
Forum: PHP - Code
Topic: Creating a HTML log -- closing the table and html tag
Replies: 5
Views: 928

There is a database back-end, but the client is requesting one which he can just donwload from the FTP server. I have shown him how to export the backend tables as excel, but apparently not good enough for his purpose. Also, there are some other transactions info which are not stored in the DB but h...
by LonelyProgrammer
Sat Jul 21, 2007 10:10 am
Forum: PHP - Code
Topic: Creating a HTML log -- closing the table and html tag
Replies: 5
Views: 928

Creating a HTML log -- closing the table and html tag

Hi all, I am currently doing a HTML log of daily transactions of an e-commerce website. I have to add transactions as a row to a table. Now I am stuck on how I do insert into the middle of the log file, just before the the closing </table></html> tag. I was thinking of truncating the file to remove ...
by LonelyProgrammer
Tue Feb 14, 2006 10:35 pm
Forum: General Discussion
Topic: Compiling PHP to a Windows EXE
Replies: 7
Views: 1466

That sounds intriguing.

But what aboutMySQL support? Is there a way to 'reroute' PHP so that it uses Access or something else that most Windows user would have?

Edit: Fixed typo
by LonelyProgrammer
Fri Dec 23, 2005 11:17 am
Forum: Databases
Topic: Sorting problem. Need to know sorting order of a record
Replies: 2
Views: 811

I'm not sure if this would work...

Get the player id
SELECT MAX(id) FROM highscore

Then count the number of records
SELECT COUNT(id) FROM highscore WHERE score <= $player_score AND id <> $player_id

It's way past bedtime for me now, so I couldn't test it...
by LonelyProgrammer
Fri Dec 23, 2005 1:17 am
Forum: Databases
Topic: Sorting problem. Need to know sorting order of a record
Replies: 2
Views: 811

Sorting problem. Need to know sorting order of a record

Hi all, I am developing a mini-game, in which the results will be stored in a database. I need to display the player's score, showing him where he ranks. For instance, if the player is ranked as the 10th position, then I will need to show the score for the 5th position to 15th position. I could simp...
by LonelyProgrammer
Wed Sep 15, 2004 11:40 am
Forum: PHP - Code
Topic: Detecting a bounce-back email with PHP
Replies: 1
Views: 647

Detecting a bounce-back email with PHP

Suppose I send an email with the mail() function, and wishes to keep track of which emails has been bouncing. Is this doable through PHP?
by LonelyProgrammer
Sun Aug 08, 2004 10:06 pm
Forum: PHP - Code
Topic: Argh - Appending to $_GET query across the board
Replies: 2
Views: 812

Argh - Appending to $_GET query across the board

Hi, The gist of my problem is. I have been writing code that uses the a variable in the GET query to determine which action to take, eg: switch ($_GET&#1111;"action"]; At the last moment, the client wanted me to add in something new (don't they always?) Basicially, it means appending a...
by LonelyProgrammer
Sun Aug 08, 2004 10:01 pm
Forum: PHP - Code
Topic: Disappearing $GLOBALS scope
Replies: 1
Views: 674

Disappearing $GLOBALS scope

Global variables just refuse to work. This is the first time I am coming across this... a.php class a &#123; // imagine some code her &#125; $g_a = new a(); b.php print_r($GLOBALS) // -- &#1111;b]BOOKMARK 1&#1111;/b] class b &#123; function printA() &#123; global $g_a; print_...
by LonelyProgrammer
Thu Jun 17, 2004 8:11 am
Forum: Installation and Configuration
Topic: Local-host apache and FTP
Replies: 1
Views: 4085

Local-host apache and FTP

Hi all,

I am currently trying out the ftp_connect() and other such functions on my local-host. But how do I create a FTP account with apache to work with?
by LonelyProgrammer
Sat May 29, 2004 1:32 pm
Forum: Installation and Configuration
Topic: Internet Information System cannot display images?
Replies: 1
Views: 4361

Internet Information System cannot display images?

Hi all, I just changed from PWS to IIS 5.1 (major computer upgrade) and realises that all web pages served with IIS does not have any graphics rendered. Eve the default start page seemingly cannot render the GIF files in the web page even though the path is correct. What's going on? How can I fix th...
by LonelyProgrammer
Sat May 29, 2004 11:36 am
Forum: Databases
Topic: using mysql 4.1 with iis 5.1 with PHP
Replies: 0
Views: 627

using mysql 4.1 with iis 5.1 with PHP

Help ~ I have been trying to get MySQL 4.1 to work with IIS 5.1 (for PHP) for the past four hours and am getting nowhere. Whether I try running mysqladmin, I get: MYSQLADMIN: cannont connect to the server at 'localhost' And mysql_connect yields "cannot create a link" and "cannot conne...
by LonelyProgrammer
Mon Mar 15, 2004 8:11 am
Forum: PHP - Code
Topic: What is the point of references in a new statement?
Replies: 2
Views: 940

Copy of the object...?

Wait a sec, I still don't get it. If I want a new instance of class, why would I want a reference to the class? Unless if you meant by copy, you are saying that PHP creates two copies whenver I use "$c = new classC();", one which is $c, and another one which is "new classC()" ?
by LonelyProgrammer
Sun Mar 14, 2004 5:28 am
Forum: PHP - Code
Topic: What is the point of references in a new statement?
Replies: 2
Views: 940

What is the point of references in a new statement?

Example:

Code: Select all

class foobar() &#123; ... &#125;

$aFooBar = & new foobar();
How is it different from:

Code: Select all

$aFooBAr = new foobar();
Read the docs on references...I still feel...kind of lost.
by LonelyProgrammer
Sun Mar 14, 2004 5:14 am
Forum: PHP - Code
Topic: Is this a valid PHP function call?
Replies: 2
Views: 694

Gah, I stupidly post in the wrong forum. Can someone help to move the post? Apologies in advance!