T! them, and transfer back the changes (e.g. via FTP).
--
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife - he'll learn"
- The Wee Book of Calvin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
claim "guru" status themselves :)
Having said that, I'm about to commit yesterday's changes to Subversion
and run another backup whilst touching wood!
Checking Google's cache should give you an idea of what you had up
there, and the rebuild is always better than the origina
you won't be bitten likewise, unless you'd prefer to take umbrage
at offers of advice you don't like.
Or perhaps you think that good IT professionals do hack their production
environments without backups as a matter of course? And on low-service
hosting environments. :)
-
ing so that you can
support older sites on older versions of the libraries whilst further
developing them for newer sites.
http://subversion.tigris.org/
http://tortoisesvn.tigris.org/
http://rapidsvn.tigris.org/
http://meld.sourceforge.net/
Of course, a good IT professional would probably tell you
for some other
databases)
Roger Bigras wrote:
>>you may try the
>>
>>ini_set('magic_quotes_gpc',0);
That won't work:
http://au.php.net/manual/en/function.get-magic-quotes-gpc.php
"Keep in mind that the setting magic_quotes_gpc will not work at
runtime.&quo
//example.com/
in the HTML body. You'll need to catch the heredoc as a string, and
replace any URLs with the anchored URL as above.
--
Ross McKay, Toronto, NSW Australia
"Before enlightenment: chop wood, carry water;
After enlightenment: chop wood, carry water" - Wu Li
--
PHP
the East Coast of Australia, or
IOW somewhat to the left of Kalifornia and down a bit)
--
Ross McKay, Toronto, NSW Australia
"Under the big bright yellow sun" - Fat Boy Slim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 13 Aug 2008 15:46:47 + (UTC), Jonesy wrote:
>I'd've thought with Aussie, Southern Cross-oriented globes, it would be
>to the _right_ of Kalifornia and _up_ a bit.
Yes, but I was translating from Strine to Wronglish for the North
Americans ;)
--
Ross McKay, Toronto,
On Thu, 14 Aug 2008 23:46:05 -0400, Michael S. Dunsavage wrote:
>I use geany and Quantum
+2 for geany (SWMBO uses it too). It's a good general-purpose text
editor and simplified IDE. Build it from SVN, as it has been moving
fairly quickly and distro packages often haven't kept up.
-
tions']['flavour'];
echo "flavour: $flavour\n";
$size = $_POST['options']['size'];
echo "size: $size\n";
}
?>
NB: no quotes around array key!
I found this very handy for having variable product options on a simple
shopping c
More specifically:
option 1 - colour:
# red
#
green
#
blue
colour: $colour\n";
?>
--
Ross McKay, Toronto, NSW Australia
"If ye cannae see the bottom, dinnae complain if ye droon"
- The Wee Book of Calvin
--
PHP General Mailing List (http://www.php.net/)
To unsubs
http://thedailywtf.com/Series/CodeSOD.aspx
Then, don't do it like that!
But seriously, you might want to check out this page on Wikipedia, and
follow some of its references:
http://en.wikipedia.org/wiki/Programming_style
--
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi th
e not expected in posts to
these websites. If they were, well... :/
--
Ross McKay, Toronto, NSW Australia
"The chief cause of problems is solutions" -Eric Sevareid
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If
>that value is posted, then I reject the form since it shouldn't exist.
Nice idea, I'll try that one. Have not heard of any customers with
problems lately, but it happens from time to time... this sounds like a
good buster for automated spam injectors.
thanks!
--
Ross McKay, To
ormally gets to just press down arrow, tab.
--
Ross McKay, Toronto, NSW Australia
"It doesn't matter if the Rock wants to go get diamond rings or not!"
- The Rock
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
me I like to have my cake and eat. ;-)
I've always thought cake was over-rated...
--
Ross McKay, Toronto, NSW Australia
"Read beans and rice, I could eat a plate twice" - Spearhead
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ing!).
[She's about to come over and demand her coffee, must fetch ;) ]
--
Ross McKay, Toronto, NSW Australia
"Such a pretty girl, happy in an ugly place,
watching all the pretty people
doing lots of ugly things" - Everclear
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
at
way to learn what bad code looks like!) Read what makes code good and
what makes it bad. Then write some more code :)
--
Ross McKay, Toronto, NSW Australia
"Before enlightenment: chop wood, carry water;
After enlightenment: chop wood, carry water" - Wu Li
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, eh? :)
(although I did find time to test Chrome in KVM - and I must say it is
fast, if not particularly useful yet)
--
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife - he'll learn"
- The Wee Book of Calvin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e whereby "hard drive writes" are held in temporary
files and only written back to the image if / when you tell the VM to
commit. Thus, you don't even need to refresh the image if you just test
in snapshot all the time. (and work with network data files, or version
control workspaces)
-
Arnie Shore wrote:
>> Folks, I need to take a given float value to, say, two decimals, as per
>> subject JS. I've RTFM, but to no avail.
On Mon, 08 Sep 2008 22:03:54 +0200, Sjoerd wrote:
>$str = sprintf("%01.2f", $number);
Skinning cat, method two:
$str = numbe
mp; I are fed up with
having to find nasty kludges for IE6 every time we build a website!
--
Ross McKay, Toronto, NSW Australia
"I think you are blind to the fact that the hand you hold
is the hand that holds you down" - Everclear
--
PHP General Mailing List (http://www.php.net/)
T
s want to upgrade to it (and who can blame them?) The best thing
about Google Chrome is that maybe, just maybe, the tide will turn
against Microsoft Word as the tech-unsavvy move to this "cloud
computing" buzzword-paradise (onto Linux-based cheap PCs with no IE6!)
Ah, a man can dream, can
On Thu, 11 Sep 2008 14:22:30 +0100, Colin Guthrie wrote:
>[...] I'm not sure how you would police it, but
>there should be a badge of honour associated with the system in some
>way, probably overseen by W3C.
Like this?
http://en.wikipedia.org/wiki/Acid2
--
Ross McKay, Toronto,
ext/plain)
Good idea:
X-Mailer: 'PHP/' . phpversion()
To test, send some emails to yourself at an account that has
SpamAssassin and look at the headers to see what SpamAssassin says as it
should indicate what it doesn't like about your emails. Try this first,
before messing with the heade
l I think I'm going to be ending up down the phpmailer route!
It's the easiest route, and will catch some other problems for you into
the bargain.
--
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife - he'll learn"
- The Wee Book of Calvin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hat just don't come across right in any
Linux word processor, so I still need to open up Microsoft Word
occasionally)
--
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife - he'll learn"
- The Wee Book of Calvin
--
PHP General Mailing List (http://ww
Posting this here, because a few people responded when I mentioned not
having a Linux-native data modelling tool. Apparently, MySQL Workbench
should be alpha-ready by end of the month...
http://dev.mysql.com/workbench/?p=138
Maybe I can ditch Visio one day soon... :)
--
Ross McKay, Toronto, NSW
ding databases, and usually also for documenting them.
If your DB has more than a handful of tables, it's well worth the
effort.
--
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife - he'll learn"
- The Wee Book of Calvin
--
PHP General Mailing List (http://ww
ild script. It also has a reporting tool for generating a data
dictionary. In short, it makes a pretty good stab at being a data
modelling tool (imperfectly, but sufficiently for my needs).
Dia is just a diagramming tool (unless you can tell me otherwise).
--
Ross McKay, Toronto, NSW Australia
&quo
tity-relationship_model
http://en.wikipedia.org/wiki/CA_ERwin_Data_Modeler
http://en.wikipedia.org/wiki/ER/Studio
http://en.wikipedia.org/wiki/Toad_Data_Modeler
http://en.wikipedia.org/wiki/MySQL_Workbench
--
Ross McKay, Toronto, NSW Australia
"Before enlightenment: chop wood, carry water;
After enli
of the program above the
>> bottom of the screen. (Crimson Editor is the only one I have found
>> that does this.)
>
>vi has no problem doing that.
Geany does this too, unless you ask it not to (preferences).
--
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife -
em).
Can you confirm: are you telling your PHP connection into MySQL to use
Unicode? e.g. tell MySQL directly by executing the following statement:
set names 'utf8'
Also, is some of your data going through htmlentities() and coming out
wrong? If so, look at specifying the character s
On Tue, 30 Sep 2008 12:48:35 +0800, LKSunny wrote:
>i want on inner EOF do something, calculate and call function ? can not ? if
>yes, how to ?
Same way as you do with "" strings. e.g.
bar()}
ENDHELLO;
}
}
$foo = new foo();
$foo->hello();
?>
--
Ross McKay, Toronto,
"
. $_FILES[$inputName]['error'] . ".\n";
break;
}
--
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife - he'll learn"
- The Wee Book of Calvin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
d working without constant patch-ups (on which basis, I'd guess the
Leaning Tower of Pisa isn't really a success :)
http://thedailywtf.com/Articles/What_Could_Possibly_Be_Worse_Than_Failure_0x3f_.aspx
If/when you recognise stupidity in your own actions, stupid tends to
stop. If you never s
editing for admin pages (simple CMS)
* KVM - lets me test in IE6/IE7 without having to reboot into Windows
* Subversion - because I value my time :)
* Meld - because I value my sanity! (graphical diff/merge)
--
Ross McKay, Toronto, NSW Australia
"Before enlightenment: chop wood, carry water;
d ? 'disable' : 'normal';
var startdate = document.getElementById('startdate');
if (startdate)
startdate.disabled = asDisabled;
}
No
Yes
PS: pick HTML4 or XHTML; your sample code shows the latter, the DOCTYPE
says the former.
--
Ross McKa
My page displays the first result and then I get the following
error.
Warning: mysql_fetch_assoc(): 3 is not a valid MySQL result resource in
c:\inetpub\wwwroot\testy\Untitled-1.php on line 29
Please help.
R.
my code.
--
PHP General Mailing List (http
This is my code...
It displays one result then thows up the following error
Warning: mysql_fetch_assoc(): 3 is not a valid MySQL result resource in
c:\inetpub\wwwroot\testy\Untitled-1.php on line 29
--
PHP General Mailing List (http://www.php.net/)
To uns
I have a porblem with undefined variables on loacalhost. Any ideas why? I
have turned registed variables on.
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It was my error reporting.forgot I replaced my ini file.
"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Ross Hulford wrote:
>> I have a porblem with undefined variables on loacalhost. Any ideas why? I
>> have turned registed variab
is in
place when Iinstalled it.
I get no errors. Telnet is working on port 23 "microsofts esmtp service
ready..."
Do I have to start the mail server as a service? If so how do Ido this?
Ross
Help please,
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
Hi,
I am using the mail() function in php andI am looking for a quick and easy
way to make the mail_body of an auto response email with HTML tags in it so
I can add some style to it.
Are the use of CSS tags possible too?
Any suggestions will be much appreciated
Ross
--
PHP General
Her is the code (not mine) what I am trying to so is cut out all the header
info that is included in the message as shown here
http://supercool-74.com/sms/liveticker.php
The message is supposed to be terminated by the "xx" string which is defined
in config.php but it just continues and prints a
Hi,
I need to find a good Javascript newsgroup.
Thanks,
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there a way to add and remove lines of text to a textarea inside a form?
Thanks
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
point me in the right direction?
Kind regards,
Ross Hulford
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there a single bit of code for scrubbing all the cookies or do I have to
do setcookie ("name, "") for all of them??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t the following error:
Fatal error: Call to undefined function: imagecreatetruecolor() in
imagetest.php on line 2
This code works on other servers, so where have I gone wrong in my installation
of GD?
Thanks in advance,
Ross
First of all, I _think_ this is more of a javascript/jscript question than a
php one.
Are you just trying to make a javascript call from php onload? If so, i'm
pretty sure you can use window.onLoad in a script block in the head.
Also, be sure to set your scripting type in the onclick. i.e.
onc
I don't think a lot of people think tat PEAR sucks, we are all, as a
community, just looking for ways to make it better.
C
On 6/25/05, Chris Shiflett <[EMAIL PROTECTED]> wrote:
>
> Matthew Weier O'Phinney wrote:
> > The perl culture is one that includes testing and documentation as
> > the norm
and for completeness of the topic, ceil() will round fractions up.
i.e.
ceil(16.1) = 17
ceil(16.0) = 16
I think the Credit Card Industry using ceil() alot ;P
On 7/2/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote:
>
> Ryan A wrote:
> > Hey guys,
> > This is the code I am using to
Hi all !
Here, we've got several Mac computer acting as servers to serve many kinds
of sites. One of wich was running, until the middle of august, Mac OS X
10.2. It was then with apache 1.3.x, and php 4.3.10 dso. All things were
"normal".
At the middle of august, we upgraded to Mac OS X 10.4 (re
Now, in a different server room, we have a set of 3 xserves cluster node
dual g5 with 4 gigs of ram each. One of them was upgraded to Mac OS X
10.4
(server) and the other 2 are still with 10.3.
If I take the same setup (same compile options, same versions) on these
machines, the exact same site
In all cases, it was the same httpd.conf. Of course, from apache 1 to 2
there where differences, but basicly it's the same.
your description gives the impression that there is a DNS configuration
problem...
like apache is trying for 5-10 seconds to look something up, fails and
then finally
de
rving this page eats
close to 100% of 1 cpu.
Nicolas
- Original Message -
From: "Brent Baisley" <[EMAIL PROTECTED]>
To: "Nicolas Ross" <[EMAIL PROTECTED]>
Cc:
Sent: Wednesday, September 14, 2005 10:46 AM
Subject: Re: [PHP] php Slow with Mac OS X 10.4
Thanks for any hints...
Nicolas
- Original Message -
From: "Nicolas Ross" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, September 14, 2005 9:00 AM
Subject: [PHP] php Slow with Mac OS X 10.4
Hi all !
Here, we've got several Mac computer acting as servers to serve many kind
do you have
(what apache, php etc.) ?
Thanks,
Nicolas
- Original Message -
From: "Brent Baisley" <[EMAIL PROTECTED]>
To: "Nicolas Ross" <[EMAIL PROTECTED]>
Cc: ; "Shawn Moore" <[EMAIL PROTECTED]>;
"Atelier Fabien" <[EMAIL PROTEC
I must point out also, that during this time, the httpd thread that servers
my request is taking 100% of cpu for the whole 8 or 10 seconds...
Thanks,
Nicolas
- Original Message -
From: "Brent Baisley" <[EMAIL PROTECTED]>
To: "Nicolas Ross" <[EMAIL P
lus one or two other
file.
Nicolas
- Original Message -
From: "Brent Baisley" <[EMAIL PROTECTED]>
To: "Nicolas Ross" <[EMAIL PROTECTED]>
Cc: ; "Shawn Moore" <[EMAIL PROTECTED]>;
"Atelier Fabien" <[EMAIL PROTECTED]>
Sen
I've finally narrow-it down and found a solution.
After much, much googeling, trying and error on my test machine and my
xserve running mac os x 10.4, I've found out that apache2 was shipped with
mac os X 10.4 server (server only).
I decided to compile my own php (as allways) againts this apache
New version released that fixed the bug, fyi
On 9/28/05, Thomas <[EMAIL PROTECTED]> wrote:
>
> I have used nusoap and a xmethods service. You can get the ziped files
> here:
> http://www.thomash.co.za/uploads/forex/forex.nusoap.zip
>
> Hope that helps
>
> BTW: also had issues with the PEAR package
this all depends on the web server (IIS/Apache) being used...
On 12/26/05, Curt Zirzow <[EMAIL PROTECTED]> wrote:
>
> On Mon, Dec 26, 2005 at 07:42:48AM +, Dave Carrera wrote:
> > Hi List,
> >
> > Are there any https / php gotchas to take into consideration for an app
> > i am writing that wil
Merry Christmas!
Joseph Ross Lee
POPS Inc (People Organization Process and Solutions)
Phone: 8077232 Mobile:+639189363808
5L WestGate Tower, Madrigal Business Park, Investment Drive, Ayala
Alabang, Muntinlupa City, Metro Manila, Philippines
--
PHP General Mailing List (http://www.php.net
Hello... I'm having a hard time passing values from one php scripts to the
other because it doesn't seem to work. Here's part of the script
session_start();
require_once("./functions.php");
$usrname = $_POST['usrname'];
$passwrd= $_POST['passwrd'];
session_register('usrname');
session_register('p
Do you guys know of any php based text indexers? similar to lucene?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hello! anybody here who knows text based indexers? e.g. lucene(java based)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When I do the following it grabs the response (And using a packet sniffer I
can see the server responds quick). If I only call fread one time it will
read and return the page to the server. If I read a second batch after the
eof it hangs for 30 seconds.
All I want to do is send a raw POST a
Anybody here who could recommend a web based php dev tool for editing php
sources online? Thanks! I'm having a hard time finding a nice one. Thanks in
advance guys!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello... Is there any example that I can look at that does a session
variable as an array? thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
401 - 471 of 471 matches
Mail list logo