I was in the same shoes a few years ago and used this.
http://www.net-language.com/workshops/Default.asp?workshop=21
It's a good guide, shows you how to set up a web server, php and mysql on
your own PC (win32). As it's for a slightly older version of PHP some parts
of the guide don't no longer h
I'm sure people have had wilder ideas, but this is what I'm trying to do.
I'm disappointed by the lack of clear documentation and examples for GTK and
the strange way the package insists on using its own binary php.exe (for
win32) instead of being just a simple extension. And I've yet to find a wa
Thanks - very useful way of looking at things. I think I'll opt for applying
this principle to the way I plan to improve my system. Currently far too
bulky. Of course, now the project has progresse, finding time to refactor
and effectively build most of it from scratch, is quite hard.
Cheers
Chri
This is a long one - I'm trying to get to grips with my understanding of
OOP.
I'm not sure that I understand object oriented programming as well as I
could to benefit from using it in PHP. Although I've used it to produce
working applications, of the few objects I've produced nearly all have
c
Ha ha. This looks like your homework. At school some people used to pay
money for other people to do their homework for them (which may have
inspired 'sub-contracting' and consultancy).
Minimal research will get you the answers. RTFM, look on Google, buy a book,
try it for yourself, use your initi
I agree. I've found MS SQL (and MS Access databases) to be extremely fast
when well optimised, even with massive databases. As you can interface with
them using ODBC I prefer to use MS database backends when my clients already
have them installed alongside PHP for Win32.
C
-Original Message
I use the function imageTTFtext allows you to specify a string with a font
and a font point size.
Hope that helps.
Chris
-Original Message-
From: Cranky [mailto:[EMAIL PROTECTED]
Sent: 27 October 2003 10:16
To: [EMAIL PROTECTED]
Subject: [PHP] Change text size with GD
Hello,
I would li
http://uk.php.net/header
Have a look at that. As it says, sends an HTTP header. Useful if you want to
specify content type in the page that isn't HTML (maybe an image or a pdf).
Read the above for more info.
Regards
Chris
-Original Message-
From: Shaun van den Berg [mailto:[EMAIL PROTE
Here's the problem. I have a php script which generates a Year-on-Year
change graph, works fine, does the job. I want to turn it into an object.
Unfortunately I have to rename all references to variables in the object to
$this->width for example. Is there a way I can just refer to them as before.
W
Perfect. Thanks for that. I can't think associative arrays first thing in
the morning. Seems a bit clearer now...
C
-Original Message-
From: Eugene Lee [mailto:[EMAIL PROTECTED]
Sent: 03 October 2003 12:07
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Building associative arrays
On Fri, Oct
Try using stylesheets instead of javascript. I think you need to use :hover
on either the td element and then specify a style. background-color I think
it is.
I haven't got my HTML reference handy and can't remember the specifics, but
that's the general idea.
Hope that's of some use.
Regards
Ch
I'm stuck.
I'm trying to build an associative array from a database result. How can I
assign a new key and value pair
eg
mysql_fetch_row etc
{
dbRowCol1 = myarray(key)
dbRowCol2 = myarray(value)
}
You get the general idea. Can't find any examples. I'm trying to lookup a
key and retrieve the
Just thought that it might be worth considering putting some functionality
into the Excel spreadsheet to trigger the PHP application.
I've created Excel spreadsheets in the past with a VBA macro or two in it
which allows users to update information on a intranet site from the
spreadsheet. They upd
I'd consider using COM to work with Excel files if you can't find another
way to get the information out. The PHP Handbook (O'Reilly) has a good
chapter on that sort of thing. Then you can just refer to a cell as you
would in Excel VBA.
Sorry I can't think of anything better!
C
-Original Mes
And possibly the best looking site I've seen in years. Colours, curves -
bring it on
PLENTY of spare time I think...
C
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: 29 September 2003 13:00
To: Justin French; Curt Zirzow
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP
I like I like.
Look like it might cut a lot of tedious leg-work out.
Regards
Chris
-Original Message-
From: Fabrizio Balliano [mailto:[EMAIL PROTECTED]
Sent: 29 September 2003 12:37
To: [EMAIL PROTECTED]
Subject: [PHP] MerlinWork PHP Framework
Hi to all,
I'd like to present show you a
I always use Unix timestamps until I need to format it to a (what's the
word) date for presentation.
Then you can just to a if $x < $y then it happened before $y.
look for mktime(), time(), date() in the manual.
C
-Original Message-
From: Shaun [mailto:[EMAIL PROTECTED]
Sent: 29 Septemb
At a first glance:
$fp=fopen(brianLog1, "w+");
brianlog1 should either be in quotes if that's the name of the file and the
file doesn't have an extension. Or maybe it's a variable in which case
you'll need to put the $ in front of it..
Hope that helps
Regards
Chris
-Original Message--
Try Str_len and str_pad
Regards
Chris
-Original Message-
From: Chris Grigor [mailto:[EMAIL PROTECTED]
Sent: 25 September 2003 13:10
To: php
Subject: [PHP] Am stuck
Good day all
I have a txt file that has values from various strings written to it.
What Im looking for is the following
Consider 4 IFRAMEs on one page, with meta refreshes in each header which
point to your php script with a get parameter of whichever 'section' you're
dealing with.
Regards
Chris
-Original Message-
From: ascll [mailto:[EMAIL PROTECTED]
Sent: 25 September 2003 08:48
To: [EMAIL PROTECTED]
Su
You find a reasonable example if you go googling for 'PHP tutorial' and then
sit down for an evening and read the manual.
C
-Original Message-
From: Shaun van den Berg [mailto:[EMAIL PROTECTED]
Sent: 25 September 2003 07:14
To: [EMAIL PROTECTED]
Subject: [PHP] Databases
Hi
Im kinda ne
You could take it further and only allow one vote per user and then log
their IP address as well.
There won't be many people who are determined to sway the vote by going
through the hassle of creating a new user and then voting again. But there
may be some. You can weed these out by looking throug
Duh
Sorry didn't realise I was replying to a reply to the original message. And
to add insult to injury str_pad looks like it does the job a lot better...
C
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: 24 September 2003 12:43
To: Shaun
Cc: [EMAIL PROTECTED
Maybe use strlen to check the length of the $i then if it's less than 2 do
$i = "0".$i
Quick and dirty, but I've done that trick myself in the past.
C
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: 24 September 2003 12:43
To: Shaun
Cc: [EMAIL PROTECTED]
Subject
Have you timed it? You might want to check it doesn't take longer than the
max_execution_time directive in php.ini allows (you'll have to check if
that's the correct name for it). I've also used set_time_limit(0) at the top
of my scripts when I know it's going to take a while...
Regards
Chris
-
The English language can be just as confusing at times, and is full of
exceptions to rules - people just get used to them. The same can apply to a
programming language. I'm not of why PHP's naming conventions are like this,
but I can only assume it's to do with the way the language has evolved,
per
I was under the impression that if you used include_once then the script
would only include the class definition if it was required within the
script.
You might want to check the manaul or get a second opinion on that, but
that's what I've always done.
Regards
Chris
-Original Message-
F
Has anyone got any idea how I might be able to connect to an access database
without using the ODBC drivers? I logged a bug with the PHP developers
(#25472) about a problem I've been having with memory leaks when using them
for looping through hundreds of queries in sequence.
Does anyone have any
I don't understand what this achieves? Tell me more...
C
-Original Message-
From: Todd Cary [mailto:[EMAIL PROTECTED]
Sent: 15 September 2003 03:30
To: [EMAIL PROTECTED]
Subject: [PHP] Branching to a page
Back in the earlier days of PHP, pages were not cached so I developed a
method of
$perf_mod = 'mailto:[EMAIL PROTECTED]
Sent: 11 September 2003 15:44
To: [EMAIL PROTECTED]
Subject: [PHP] storing quotes into a variable
isn't there a function that allows me to store a string with a bunch of
quotes in it (like an html tag) into a variable?
for example, i need something like: $p
With max_execution_time directive in PHP.ini? I suppose I must have changed
that at some point too. I've tried using flush() before but without much
luck, and from what I've read in the manual I think it might be because I'm
running my setup on a Windows machine with IE6. A problem with client-side
browser, but it does the trick.
Kind regards
Chris Neale
Somerfield Stores Ltd.
-Original Message-
From: Sheni R. Meledath [mailto:[EMAIL PROTECTED]
Sent: 11 September 2003 13:23
To: PHP Masters
Subject: [PHP] Mailing List Programme
Hello:
I have created an application to read email a
o I think I've ruled out some kind of bottleneck.
I expected the memory to remain fairly constant throughout execution, but it
keeps on rising and not always at a constant rate.
Can anyone shed any light on this? Is this a bug in PHP?
Kind regards,
Chris Neale
Contract Developer
Somerfi
33 matches
Mail list logo