php-general Digest 11 Jan 2010 16:59:10 -0000 Issue 6533
Topics (messages 300960 through 300991):
stream_socket_client via proxy
300960 by: kranthi
Re: Upgraded PHP now website doesn't work properly?
300961 by: Waynn Lue
300970 by: Ashley Sheridan
300971 by: Bob McConnell
300973 by: Kaya Saman
300974 by: Ashley Sheridan
300975 by: Robert Cummings
300976 by: Michael A. Peters
300979 by: Kaya Saman
300986 by: Michael A. Peters
300990 by: Kaya Saman
Form validation and save the form
300962 by: aditya shukla
300964 by: Paul M Foster
300977 by: Angelo Zanetti
300978 by: Robert Cummings
300980 by: aditya shukla
300983 by: Angelo Zanetti
300988 by: Bastien Koert
Re: To add the final ?> or not...
300963 by: Paul M Foster
300965 by: Olav
htmlMicroscope 1.2.0 out - much better than 1.1.0
300966 by: Rene Veerman
I am not receiving any e-mail from the list...
300967 by: Jay Blanchard
300968 by: metastable
300969 by: Jay Blanchard
300981 by: Richard
300982 by: Daniel Brown
300984 by: Ashley Sheridan
300985 by: Richard
300989 by: Bastien Koert
Easy Eclipse PHP Problem
300972 by: tedd
Re: Formatting Decimals
300987 by: Ryan Sun
Re: SVG and PHP
300991 by: haliphax
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Hi all,
I am trying to use http://code.google.com/p/xmpphp/ package. It uses
stream_socket_client to connect to XMPP servers. I am behind a proxy
server so obviously this is not working. Tried proxychains but to no
avail.
Am I missing something obvious?
Kranthi.
--- End Message ---
--- Begin Message ---
Emacs/xemacs does syntax highlighting too.
On 1/10/10, Kaya Saman <[email protected]> wrote:
>
>>>
>>>
>> Depending on the latency and bandwidth you could use X11 forwarding
>> (granted the server supports it) so you could use a non-CLI editor. I
>> think "joe" has some syntax highlighting, but I've never edited PHP
>> files with it.
>> If you are coming from a windows machine, you can use Cygwin or Xming
>> to set up an X server on the box before SSHing to your data center
>> w/X11 forwarding enabled.
>>
>> -Ken Sande
> Many thanks to everyone!
>
> I currently use a mixture of FreeBSD, Linux, and Solaris/OpenSolaris as
> operating systems so X11 forwarding is not a problem but maybe quite
> slow considering the distance between me and my data center right now,
> and also I have only 1Mbps upstream as the data center uses ADSL which
> is a restriction on my behalf.
>
> Am using SFTP to transfer non-html related stuff and using simple nano
> or copy-paste from the Gnome terminal.....
>
> Yeah many options available I know and I guess that's what makes things
> fun :-)
>
> Anyway I'm sure I'll work something out, at worst case I could always
> VPN once I get a Cisco router out here and get an IPsec tunnel going and
> do things over NFS mount??
>
> Regards,
>
> Kaya
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
On Mon, 2010-01-11 at 03:27 +0200, Kaya Saman wrote:
> >>
> >>
> > Depending on the latency and bandwidth you could use X11 forwarding
> > (granted the server supports it) so you could use a non-CLI editor. I
> > think "joe" has some syntax highlighting, but I've never edited PHP
> > files with it.
> > If you are coming from a windows machine, you can use Cygwin or Xming
> > to set up an X server on the box before SSHing to your data center
> > w/X11 forwarding enabled.
> >
> > -Ken Sande
> Many thanks to everyone!
>
> I currently use a mixture of FreeBSD, Linux, and Solaris/OpenSolaris as
> operating systems so X11 forwarding is not a problem but maybe quite
> slow considering the distance between me and my data center right now,
> and also I have only 1Mbps upstream as the data center uses ADSL which
> is a restriction on my behalf.
>
> Am using SFTP to transfer non-html related stuff and using simple nano
> or copy-paste from the Gnome terminal.....
>
> Yeah many options available I know and I guess that's what makes things
> fun :-)
>
> Anyway I'm sure I'll work something out, at worst case I could always
> VPN once I get a Cisco router out here and get an IPsec tunnel going and
> do things over NFS mount??
>
> Regards,
>
> Kaya
I never bother with X-forwarding for development work, it is too slow I
agree. I use Konqueror to connect as an FTP client, as it works really
well as a file manager with the split screen views it has. From there, I
can manage most of my files as I wish over sftp as if they were local.
The only thing I can't do it edit the graphics files with Gimp, as that
doesn't use KDE's kioslaves :(
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
From: Kaya Saman
>>
>> I also forgot to mention, it's worth getting an editor that comes
with
>> syntax highlighting, as this would have shown you the problem right
away.
>>
> Thanks for both comments Ashley!
>
> I will attempt it now. An editor with syntax checking?? Currently my
> data center is in the UK and I am in Turkey so am having to SSH in and
> my current text editor is nano. Are there any good CLI based editors
> that will do highlighting something hopefully not in the vi/vim
> categories as I really don't get on with them!
When working in a shell, I always use joe (Joe's Own Editor). But my
first word processor was WordStar, so those keystrokes come naturally.
People who learned on newer programs probably won't have the same
experience.
Bob McConnell
--- End Message ---
--- Begin Message ---
Bob McConnell wrote:
From: Kaya Saman
I also forgot to mention, it's worth getting an editor that comes
with
syntax highlighting, as this would have shown you the problem right
away.
Thanks for both comments Ashley!
I will attempt it now. An editor with syntax checking?? Currently my
data center is in the UK and I am in Turkey so am having to SSH in and
my current text editor is nano. Are there any good CLI based editors
that will do highlighting something hopefully not in the vi/vim
categories as I really don't get on with them!
When working in a shell, I always use joe (Joe's Own Editor). But my
first word processor was WordStar, so those keystrokes come naturally.
People who learned on newer programs probably won't have the same
experience.
Bob McConnell
Thanks for so much support guys!
I've just compiled Emacs 23 on OpenSolaris and also installed Bluefish
from the package repo.
Emacs has something called flymake which I enabled but it didn't find
any errors??
My site I think is up and running again but the central menu is really
messed up and not sure why that is. Of course it doesn't help being a
network and UNIX engineer as web design is a completely different ball-game!
--K
--- End Message ---
--- Begin Message ---
On Mon, 2010-01-11 at 16:21 +0200, Kaya Saman wrote:
> Bob McConnell wrote:
> > From: Kaya Saman
> >
> >>> I also forgot to mention, it's worth getting an editor that comes
> >>>
> > with
> >
> >>> syntax highlighting, as this would have shown you the problem right
> >>>
> > away.
> >
> >> Thanks for both comments Ashley!
> >>
> >> I will attempt it now. An editor with syntax checking?? Currently my
> >> data center is in the UK and I am in Turkey so am having to SSH in and
> >>
> >
> >
> >> my current text editor is nano. Are there any good CLI based editors
> >> that will do highlighting something hopefully not in the vi/vim
> >> categories as I really don't get on with them!
> >>
> >
> > When working in a shell, I always use joe (Joe's Own Editor). But my
> > first word processor was WordStar, so those keystrokes come naturally.
> > People who learned on newer programs probably won't have the same
> > experience.
> >
> > Bob McConnell
> >
> >
>
> Thanks for so much support guys!
>
> I've just compiled Emacs 23 on OpenSolaris and also installed Bluefish
> from the package repo.
>
> Emacs has something called flymake which I enabled but it didn't find
> any errors??
>
> My site I think is up and running again but the central menu is really
> messed up and not sure why that is. Of course it doesn't help being a
> network and UNIX engineer as web design is a completely different ball-game!
>
> --K
>
Get the Firefox addon called Firebug. It shows you what CSS is being
applied to each element, and lets you edit things temporarily to see
what would happen.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
Bob McConnell wrote:
From: Kaya Saman
I also forgot to mention, it's worth getting an editor that comes
with
syntax highlighting, as this would have shown you the problem right
away.
Thanks for both comments Ashley!
I will attempt it now. An editor with syntax checking?? Currently my
data center is in the UK and I am in Turkey so am having to SSH in and
my current text editor is nano. Are there any good CLI based editors
that will do highlighting something hopefully not in the vi/vim
categories as I really don't get on with them!
When working in a shell, I always use joe (Joe's Own Editor). But my
first word processor was WordStar, so those keystrokes come naturally.
People who learned on newer programs probably won't have the same
experience.
Woohoo!!! A fellow JOE user :)
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
Ashley Sheridan wrote:
I never bother with X-forwarding for development work, it is too slow I
agree.
My development box is a Dell Optiplex G50 I found discarded in an
illegal trash pile. Hard drive was bad, I had a spare. Heat sink was
dislodged, I had thermal paste. CDROM is not reliable, but reliable
enough to boot off of a 4MB CentOS boot.iso and network install. Video
gives snow, but after install, it's headless so who cares.
It's been problem free for a couple months now (found it a couple months
ago). Only thing I had to purchase was a mouse for install - as I don't
have a spare and didn't feel like detaching a mouse from an existing
computer.
I installed bluefish on it and use bluefish over ssh via x forwarding on
my local lan and sometimes have the bluefish window open for days. When
I'm ready to publish to live, I simple ssh in and rsync to live. Never
had a slowness problem.
It's an old crap computer, ram limit of 512MB (currently has 384 in it),
but having the devel box local makes things like X forwarded a GUI text
editor cake w/o performance issues.
I use Ubuntu for my desktop, no server crap installed on it, I prefer
CentOS for serving - so this a cheap crap local box for devel server is
the perfect solution. Since I'm the only user, the low performance of
the CPU/Intel i815 chipset really isn't an issue (I think the mobo was
swapped at some point, Dell website indicates i810 but it has i815).
--- End Message ---
--- Begin Message ---
My development box is a Dell Optiplex G50 I found discarded in an
illegal trash pile. Hard drive was bad, I had a spare. Heat sink was
dislodged, I had thermal paste. CDROM is not reliable, but reliable
enough to boot off of a 4MB CentOS boot.iso and network install. Video
gives snow, but after install, it's headless so who cares.
It's been problem free for a couple months now (found it a couple
months ago). Only thing I had to purchase was a mouse for install - as
I don't have a spare and didn't feel like detaching a mouse from an
existing computer.
I installed bluefish on it and use bluefish over ssh via x forwarding
on my local lan and sometimes have the bluefish window open for days.
When I'm ready to publish to live, I simple ssh in and rsync to live.
Never had a slowness problem.
It's an old crap computer, ram limit of 512MB (currently has 384 in
it), but having the devel box local makes things like X forwarded a
GUI text editor cake w/o performance issues.
I use Ubuntu for my desktop, no server crap installed on it, I prefer
CentOS for serving - so this a cheap crap local box for devel server
is the perfect solution. Since I'm the only user, the low performance
of the CPU/Intel i815 chipset really isn't an issue (I think the mobo
was swapped at some point, Dell website indicates i810 but it has i815).
Thanks for that info I do admit that old computers do make the coolest
machines especially home servers and when running something like FreeBSD
they end up being awsome!
However we were talking about SSH over continents not local LAN! With
local LAN you get round 100Mbps unless really old in which case you
would get 10Mbps half duplex. This is no way an issue when in such close
proximity. I however am round 3500 km's away at the moment from my web
server and the internet connection I am getting is really poor as it
locks up quite a bit and I end up with failed routes between my PoP
(point of presence) server or the countries main gateway.
--- End Message ---
--- Begin Message ---
Kaya Saman wrote:
Thanks for that info I do admit that old computers do make the coolest
machines especially home servers and when running something like FreeBSD
they end up being awsome!
However we were talking about SSH over continents not local LAN! With
local LAN you get round 100Mbps unless really old in which case you
would get 10Mbps half duplex. This is no way an issue when in such close
proximity. I however am round 3500 km's away at the moment from my web
server and the internet connection I am getting is really poor as it
locks up quite a bit and I end up with failed routes between my PoP
(point of presence) server or the countries main gateway.
But what you can do is keep your dev box local, and then use rsync over
ssh to publish to the production (or dev) server that is across ocean(s).
I use .devel as my TLD for my dev hosts (IE www.something.devel) but
otherwise have the dev box configured identical to the production
server, so that if it works on dev box I know it works on production.
Other thing I do, cron job on production dumps the database once a
night, cron job on dev fetches it (via rsync over ssh w/ keys) and
applies it to dev database so that the dev database is always very close
to production database.
--- End Message ---
--- Begin Message ---
But what you can do is keep your dev box local, and then use rsync
over ssh to publish to the production (or dev) server that is across
ocean(s).
I use .devel as my TLD for my dev hosts (IE www.something.devel) but
otherwise have the dev box configured identical to the production
server, so that if it works on dev box I know it works on production.
Other thing I do, cron job on production dumps the database once a
night, cron job on dev fetches it (via rsync over ssh w/ keys) and
applies it to dev database so that the dev database is always very
close to production database.
Thanks for the tip! It isn't really a necessity as I'm not a web
developer - I just built my site from scratch that's all as I don't have
any developer friends who can help me out since I'm not an established
company yet......
Usually I just sftp a tar'ed folder or files into my home dir if I need
anything or do work on the fly.
I really need to learn rsync though as I managed to accomplish transfers
of it once but never again :-( It is especially useful for backing up
machines!
Regards,
Kaya
--- End Message ---
--- Begin Message ---
Hello Guys,
I am trying to validate a form for user input , such that when something is
missing load the form again by focusing on the wrong field.Say i don not
enter my address so when the form loads everything else is saved and the
form points to address field.
Thanks
Aditya
--- End Message ---
--- Begin Message ---
On Sun, Jan 10, 2010 at 11:37:06PM -0600, aditya shukla wrote:
> Hello Guys,
>
> I am trying to validate a form for user input , such that when something is
> missing load the form again by focusing on the wrong field.Say i don not
> enter my address so when the form loads everything else is saved and the
> form points to address field.
Typically, you would direct the form back to itself. Then at the top of
the form, you'd put a test to determine if the form has been processed
before or if this is the first time through. Then you make your decision
about missed fields, etc. Like this:
== someform.php ==
<?php
if (empty($_POST)) {
load_some_values_or_not();
}
else { // form has entered data
$okay = process_for_errors();
if ($okay) {
store_the_data();
header("Location: success.php");
exit();
}
}
?>
HTML crap goes here...
== end of someform.php ==
You'll notice that if there are entry errors, execution falls through.
In that case, you'll need to do something like this for fields:
<input type="text" name="pizza" value="<?php echo $_POST['pizza']; ?>"/>
so that the entered data shows up in the fields. First time through, the
value attribute will yield nothing.
Paul
--
Paul M. Foster
--- End Message ---
--- Begin Message ---
-----Original Message-----
From: aditya shukla [mailto:[email protected]]
Sent: 11 January 2010 07:37 AM
To: php-general
Subject: [PHP] Form validation and save the form
Hello Guys,
I am trying to validate a form for user input , such that when something is
missing load the form again by focusing on the wrong field.Say i don not
enter my address so when the form loads everything else is saved and the
form points to address field.
Thanks
Aditya
You need Javascript for that not PHP. PHP is server side, javascript is
client side (browser).
Regards
Angelo
http://www.elemental.co.za
http://www.wapit.co.za
--- End Message ---
--- Begin Message ---
Angelo Zanetti wrote:
-----Original Message-----
From: aditya shukla [mailto:[email protected]]
Sent: 11 January 2010 07:37 AM
To: php-general
Subject: [PHP] Form validation and save the form
Hello Guys,
I am trying to validate a form for user input , such that when something is
missing load the form again by focusing on the wrong field.Say i don not
enter my address so when the form loads everything else is saved and the
form points to address field.
Thanks
Aditya
You need Javascript for that not PHP. PHP is server side, javascript is
client side (browser).
He doesn't say anything about not reloading the form... in fact he
explicitly says "when something is missing load the form again". This
suggests a server request and not JavaScript. Either way... validation
can occur either in JavaScript or PHP... but it should ALWAYS occur in
PHP regardless of any JavaScript validation.
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
Thanks for the reply guys.Do you guys know a good resource where i can read
from about form validation through PHP.There a lot on google but please
suggest something if you guys know.
Thanks
Aditya
--- End Message ---
--- Begin Message ---
-----Original Message-----
From: aditya shukla [mailto:[email protected]]
Sent: 11 January 2010 05:03 PM
To: Robert Cummings
Cc: Angelo Zanetti; php-general
Subject: Re: [PHP] Form validation and save the form
Thanks for the reply guys.Do you guys know a good resource where i can read
from about form validation through PHP.There a lot on google but please
suggest something if you guys know.
Thanks
Aditya
I think just do some form validation tutorials (google for them).
These will help you to understand the validation process in more detail.
Regards
Angelo
http://www.elemental.co.za
http://www.wapit.co.za
--- End Message ---
--- Begin Message ---
On Mon, Jan 11, 2010 at 10:18 AM, Angelo Zanetti <[email protected]> wrote:
>
>
> -----Original Message-----
> From: aditya shukla [mailto:[email protected]]
> Sent: 11 January 2010 05:03 PM
> To: Robert Cummings
> Cc: Angelo Zanetti; php-general
> Subject: Re: [PHP] Form validation and save the form
>
> Thanks for the reply guys.Do you guys know a good resource where i can read
> from about form validation through PHP.There a lot on google but please
> suggest something if you guys know.
>
>
> Thanks
>
> Aditya
>
> I think just do some form validation tutorials (google for them).
> These will help you to understand the validation process in more detail.
>
> Regards
> Angelo
> http://www.elemental.co.za
> http://www.wapit.co.za
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I still like
<?php
// includes go here
if(isset($_POST['submit'])){
process_form();
}else{
show_form();
}//end if
function process_form()
{
//receive the data, validate and store the data in the db goes here
//feel free to add more functions that you could re-use in other parts
//of the app
}
function show_form($data='', $errors='')
{
//code to show the form goes here
//$data and $errors could be passed in from the above function if
//there are issues with the data validation (no image, data missing etc)
}
for simple pages. Its a mini MVC where the code could post the data
back to the form with error message to indicate to the user what
should be done.
--
Bastien
Cat, the other other white meat
--- End Message ---
--- Begin Message ---
On Sun, Jan 10, 2010 at 06:41:19AM -0800, Michael A. Peters wrote:
> Daevid Vincent wrote:
>
>>
>> What do you guys all do?
>
I leave it off. I don't want to have to worry about which editor I'm
using or whether I accidentally left some whitespace where it shouldn't
be.
Paul
--
Paul M. Foster
--- End Message ---
--- Begin Message ---
Paul M Foster wrote:
> I leave it off. I don't want to have to worry about which editor I'm
> using or whether I accidentally left some whitespace where it shouldn't
> be.
I also use different editors in different situations, both terminal based
and GUI. For instance I find Midnight Commander's internal editor quite
comfortable to use but unfortunately it does leave whitespace all over
the place.
This discussion made me think. From now on, I will probably also leave
the closing ?> off in include files. If something isn't really needed
then there is no rational reason to insist on using it.
--- End Message ---
--- Begin Message ---
Check it out at http://mediabeez.ws/htmlMicroscope
Last modified Mon, 11 Jan 2010, 13:00 UTC+0100
Latest changes:
* Javascript hm() support added
* Added ability to view HTML strings as rendered HTML.
I admit there are still problems with some HTML "taking over the
browser" as soon as viewed in rendered form.
I hope to fix most of those problems in a later release.
* Added ability to put semi-binary data (see "All Ascii" in
"random array" example) in values.
* Much improved CSS; it's now properly generated in javascript
instead of badly hand-crafted & stored on the server.
Themes are now generated from definitions like these:
( please use hms.tools.addTheme(contributerName, themeName,
theme) to add a theme, and load them just after hm.js is loaded. var
theme = renesIce)
options : {
......
authorsDefaults : {
themes : {
.......
,renesIce : {
themeName : 'renesIce',
cssGeneration : {
colorLevels : {
// This sets "stops" for color gradients.
// 0 = outer level of display,
// 100 = deepest level of display.
0 : {
background : 'navy',
color : '#FFFFFF'
},
45 : {
color : 'black'
},
75 : {
background : 'lime',
color : 'navy'
},
100 : {
background : 'white',
color : 'black'
}
//Rules:
// 1: only css COLOR properties allowed here.
// color names allowed, for a list see
http://www.w3schools.com/css/css_colornames.asp
// 2: properties used anywhere in a list like this must be
present in both 0: and 100:
}
},
......
License: LGPL
--- End Message ---
--- Begin Message ---
..and I haven't for a while. Is anyone else having this problem? If you
are you will not see this.
--- End Message ---
--- Begin Message ---
Jay Blanchard wrote:
> ..and I haven't for a while. Is anyone else having this problem? If you
> are you will not see this.
>
>
If they are, how can they wonder if they have this problem ?
--- End Message ---
--- Begin Message ---
[snip]
Jay Blanchard wrote:
> ..and I haven't for a while. Is anyone else having this problem? If
you
> are you will not see this.
>
>
If they are, how can they wonder if they have this problem ?
[/snip]
exactly
--- End Message ---
--- Begin Message ---
Hi,
> ...
I had this (I think) recently; mail simply stopped coming from the
list and I can't remember unsubscribing (though that's not saying
much...). I simply re-subscribed and all was dandy again.
--
Richard Heyes
HTML5 canvas graphing: RGraph - http://www.rgraph.net (updated 9th January)
Lots of PHP and Javascript code - http://www.phpguru.org
--- End Message ---
--- Begin Message ---
On Mon, Jan 11, 2010 at 10:10, Richard <[email protected]> wrote:
>
> I had this (I think) recently; mail simply stopped coming from the
> list and I can't remember unsubscribing (though that's not saying
> much...). I simply re-subscribed and all was dandy again.
Quite possibly caused by malformed headers or SPAM being rejected
by the filters and bounced back to the list. Two bounces and a tracer
is sent. If that fails as well (and they usually do), you're
unsubscribed without further notice. It happens to me all the time on
the Windows list (now that I think about it, I think it happened
again).
--
</Daniel P. Brown>
[email protected] || [email protected]
http://www.parasane.net/ || http://www.pilotpig.net/
Looking for hosting or dedicated servers? Ask me how we can fit your budget!
--- End Message ---
--- Begin Message ---
On Mon, 2010-01-11 at 10:17 -0500, Daniel Brown wrote:
> On Mon, Jan 11, 2010 at 10:10, Richard <[email protected]> wrote:
> >
> > I had this (I think) recently; mail simply stopped coming from the
> > list and I can't remember unsubscribing (though that's not saying
> > much...). I simply re-subscribed and all was dandy again.
>
> Quite possibly caused by malformed headers or SPAM being rejected
> by the filters and bounced back to the list. Two bounces and a tracer
> is sent. If that fails as well (and they usually do), you're
> unsubscribed without further notice. It happens to me all the time on
> the Windows list (now that I think about it, I think it happened
> again).
>
> --
> </Daniel P. Brown>
> [email protected] || [email protected]
> http://www.parasane.net/ || http://www.pilotpig.net/
> Looking for hosting or dedicated servers? Ask me how we can fit your budget!
>
All my mails were rejected from the list a couple of weeks ago, because
my hosting had found its way onto a blacklist, which they vehemently
denied until I pointed it out to them.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
Hi,
> ...
It's not a problem at all, it just takes me a few months to realise... :-)
--
Richard Heyes
HTML5 canvas graphing: RGraph - http://www.rgraph.net (updated 9th January)
Lots of PHP and Javascript code - http://www.phpguru.org
--- End Message ---
--- Begin Message ---
On Mon, Jan 11, 2010 at 10:17 AM, Daniel Brown <[email protected]> wrote:
> On Mon, Jan 11, 2010 at 10:10, Richard <[email protected]> wrote:
>>
>> I had this (I think) recently; mail simply stopped coming from the
>> list and I can't remember unsubscribing (though that's not saying
>> much...). I simply re-subscribed and all was dandy again.
>
> Quite possibly caused by malformed headers or SPAM being rejected
> by the filters and bounced back to the list. Two bounces and a tracer
> is sent. If that fails as well (and they usually do), you're
> unsubscribed without further notice. It happens to me all the time on
> the Windows list (now that I think about it, I think it happened
> again).
>
> --
> </Daniel P. Brown>
> [email protected] || [email protected]
> http://www.parasane.net/ || http://www.pilotpig.net/
> Looking for hosting or dedicated servers? Ask me how we can fit your budget!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Windows, still not ready for the desktop!
--
Bastien
Cat, the other other white meat
--- End Message ---
--- Begin Message ---
Hi gang:
I recently installed MAPA on my new system (Mac X 10.6.2) to use use
Eclipse and PHP 5.
The EasyEclipse for PHP download is located at:
http://www.easyeclipse.org/site/distributions/php.html
However, the installation fails.
I posted an error report, but there are other reports that date
months back. Does anyone have the ear of any developers who work on
this open source project? Until that bug is fixed, my new system sits
idle.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
$newprice = sprintf("$%.2f", 15.109);
On Sun, Jan 10, 2010 at 8:36 PM, Rick Dwyer <[email protected]> wrote:
> Hello List.
>
> Probably an easy question, but I am not able to format a number to round up
> from 3 numbers after the decimal to just 2.
>
> My code looks like this:
>
> $newprice = "$".number_format($old_price, 2, ".", ",");
>
> and this returns "$0.109" when I am looking for "$0.11".
>
>
> I tried:
>
> $newprice = "$".round(number_format($old_price, 2, ".", ","),2);
> But no luck.
>
> Any help is appreciated.
>
> Thanks,
>
> --Rick
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
On Wed, Jan 6, 2010 at 5:04 PM, Bob Strasser <[email protected]> wrote:
>
> Hi,
>
> Just went online and saw an SVG generated from Python, and wanted to
> do the similar thing by loading the SVG into an PHP script. Here is the
> script that I have:
>
> <?php
>
> #Load the Map
> $ourFileName= "USA_Counties_with_FIPS_and_names.svg";
> $fh = fopen($ourFileName, "r") or die("Can't open file");
> fclose($fh);
>
> ?>
>
> The problem is that my screen appears as blank even though I could open
> up USA_Counties_with_FIPS_and_names.svg and see the entire US Map. Does
> anyone know what I might have done wrong here?
>
> Thanks in advance.
>
> Alice
>
>
Bob/Alice/Whatever,
You don't do anything with the SVG file except open it and close it. Opening
and closing a door doesn't walk you through the doorway. Maybe you should
"echo" the contents of said file after sending a Content-Type header through
to the browser?
// Todd
--- End Message ---