IMHO, vertical aligned brackets can be messy when nesting
relatively-small blocks (and seems to me like a lot of wasted space)
I'm struggling to get my head around this concept of 'wasted space'
with regard to software code. What is it that's getting wasted,
exactly? If we printed
On 4/28/06, Sumeet [EMAIL PROTECTED] wrote:
we are looking for experienced php/mysql programmers full time freelance...
You could post job details on either elance.com, rentacoder.com or
other similar sites (I'm sure there are tons more)...
--
Postgresql php tutorials
On 4/29/06, Dave Goodchild [EMAIL PROTECTED] wrote:
Thanks all. Worst case scenario I can rebuild from the demo as it works
(really don't want to do that). Was loathe to plaster your screens with
miles of code but understand it's hard to assit without it.
If you still need help..
On Sat, 2006-04-29 at 01:38, Rafael wrote:
IMHO, vertical aligned brackets can be messy when nesting
Explain messy!?
relatively-small blocks (and seems to me like a lot of wasted space)
Did you just say wasted space? I mean it's not like 99.9% (pulled from
the dark recesses of my
On Sat, 2006-04-29 at 02:08, Paul Novitski wrote:
IMHO, vertical aligned brackets can be messy when nesting
relatively-small blocks (and seems to me like a lot of wasted space)
I'm struggling to get my head around this concept of 'wasted space'
with regard to software code. What
On Fri, April 28, 2006 6:13 pm, René Fournier wrote:
Simple problem: Many client apps need to send data to a server.
By default each client will open a persistent TCP socket connection
to a common IP address:port (10.10.10.10:1234) and write to it (which
the server will save/log, etc.).
My
Try this (don't pay attention to the name):
/**
* @param string $text
* @returnarray
* @since Sat Apr 29 01:35:37 CDT 2006
* @authorrsalazar
*/
function parse_phrases( $text ) {
$arr_pzas = array();
if (
On Fri, April 28, 2006 6:49 pm, René Fournier wrote:
I suppose my question
would be, can a single PHP socket server script, executed from the
command-line, maintain 1000s of concurrent connections (there is not
a lot of data incoming, btw)?
I suppose my answer boils down to:
You'll never
Misleading to who? I own the app and am the only person who will ever use
it. Rather anal.
On 29/04/06, Martin Alterisio [EMAIL PROTECTED] wrote:
2006/4/28, Barry [EMAIL PROTECTED]:
Martin Alterisio schrieb:
2006/4/28, Dave Goodchild [EMAIL PROTECTED]:
Hi all - I am attempting to solve
It's kind of ironic that you didn't split that big chunk of text into
paragraphs, don't you think? ;)
Anyway, yes, I was referring to visual space, we all know that is more
clear the more you can see the code, that's why we don't let rows go
insinely long (well, wide actually), and that
On Fri, April 28, 2006 5:18 pm, Chris W. Parker wrote:
Richard Lynch mailto:[EMAIL PROTECTED]
on Monday, April 24, 2006 11:50 PM said:
So no matter what was actually typed, *I* would see:
function foo ($x) {
//body
}
but some heretic who doesn't know any better would see:
function
On Sat, April 29, 2006 1:08 am, Paul Novitski wrote:
IMHO, vertical aligned brackets can be messy when nesting
relatively-small blocks (and seems to me like a lot of wasted space)
I'm struggling to get my head around this concept of 'wasted space'
with regard to software code. What is
On Fri, April 28, 2006 4:54 pm, OpenMacNews wrote:
-BEGIN PGP SIGNED MESSAGE-
in a given php file, this returns an image as expected:
...
$word=blah;
imagefttext($im, ... other params ... , $word);
...
header (Content-type: image/png);
On Fri, April 28, 2006 3:23 pm, René Fournier wrote:
Anyone find any good tutorials, code samples, etc. on such a thing?
Basically, I want to write server (in PHP) that listeners on a
particular port, and spins off a thread/process (essentially, execute
a separate script) for each incoming
On Fri, April 28, 2006 11:55 am, IG wrote:
I have recently moved over to a managed dedi server and no can ask my
host to change my php.ini.
I have found out that the 'display_errors' in the php.ini is set to
off
and error file logging is off.
Do they have .htaccess turned on?
Because you
On Fri, April 28, 2006 10:26 am, sathyashrayan wrote:
I am a self thought php beginner. I wrote my first toy
code for database connection in php/mysql. The connection
is successful but iam getting a warning and my rows/columns
are not showing. I am getting a warning:
Warning:
On Fri, April 28, 2006 8:11 am, Dave Goodchild wrote:
I am working on a viral marketing application that uses multipart
emails to
notify entrants of their progress in the 'game'. I have a demo version
which
works fine, and the current rebranded version was also fine until the
client
asked
On Fri, April 28, 2006 6:21 am, Schalk wrote:
Possibly a very simple question but here goes. How would I code the
following in PHP?
if(window.location == ((http://www.epda.cc/index.php;) ||
The closest moral equivalent to window.location in PHP is probably
$_SERVER['PHP_SELF']...
Actually,
All my variables are correctly delimited. And don't make assumptions about
what my code looks like - I am asking for help, not judgements, and my
question was valid (unlike many you see here). I am not a spammer either,
this is an application for the marketing department of a charity.
On
On Fri, April 28, 2006 11:16 am, Weber Sites LTD wrote:
I'm looking for the RegExp that will split a search string into search
keywords.
while taking into account.
From what I managed to find I can get all of the words into an array
but I
would
like all of the words inside to be in the
On 4/29/06, Dave Goodchild [EMAIL PROTECTED] wrote:
All my variables are correctly delimited. And don't make assumptions about
what my code looks like - I am asking for help, not judgements, and my
question was valid (unlike many you see here). I am not a spammer either,
this is an application
On Fri, April 28, 2006 8:57 am, T.Lensselink wrote:
In the demo version the script accesses the $_GET array - an example
value:
$data[email]
..which works fine in the demo app. If I quote all the values thus
in the
new version:
$data['email']
..the arguments appear in the correct
On Fri, April 28, 2006 9:01 am, Dave Goodchild wrote:
Thanks - now the parameters reach the function intact but the mailer
still
does not work. Basically, the form is a self-reloader. If the form has
been
submitted and the data validated (including emails sent) it displays a
thank
you
On Fri, April 28, 2006 9:19 am, Dave Goodchild wrote:
I would do but there are 5000+ lines and no indication of where the
error is
occurring. I have just copied the demo version into the same dir and
it
works fine - and that version calls the same classes (includes).
Go ahead and let he
Wrong - both versions run on the same server (virtual hosts but same php.ini).
I will check the values however, thanks!
On 29/04/06, Richard Lynch [EMAIL PROTECTED] wrote:
On Fri, April 28, 2006 8:57 am, T.Lensselink wrote:
In the demo version the script accesses the $_GET array - an example
On Fri, April 28, 2006 3:09 am, Nick Wilson wrote:
[EMAIL PROTECTED] ls
ads/ config.inc db.inc funcs.inc init.inc
where ads/ is a whole huge set of scripts from an existing setup. ads/
was originally placed on its own domain as it's a version of phpadsnew
and runs as a server all by
Hi,
I am new to this IPN (instant payment
notification.I am working for past 6 hours.I am using
this IPN to store payment details in our database.
when user clicks the paypal button in my page.it
will take to paypal.com website.after user completes
the payments.It will send the payment
On Thu, April 27, 2006 9:56 am, Jason Gerfen wrote:
I have come upon a problem and am not sure how to go about resolving
it. I have an web form which is generated dynamically from an
imported
file and I am not sure how I can loop over the resulting post
variables
within the global $_POST
On Thu, April 27, 2006 8:15 am, Rosen wrote:
I have this problem with uploading images:
I try several PHP classes for upload of files on server ( pictures in
my
case ), but if some user only renames some file as .jpg the script
uploads the file even the file format is not .jpg - i.e. - file
On Thu, April 27, 2006 7:46 am, cybermalandro cybermalandro wrote:
I am running an old version of PHP for winblows 4.3.8. I cannot
upgrade to
4.4.2 yet. I rebooted the web server and the box. I am not doing any
exception handling. I want the errors to be writtent to a log but
instead
they
On Sat, April 29, 2006 3:53 am, suresh kumar wrote:
input type=hidden name=item_name
value=Subscribe to Additional User Account Yearly
my page code to process paypal
--
?
// read the post from PayPal system and add 'cmd'
$req =
On Thu, April 27, 2006 6:39 pm, tedd wrote:
At 1:57 PM -0700 4/27/06, Paul Novitski wrote:
variable to js and will cause js to execute. But, isn't there
anything else? Is that all there is?
That's all there is unless you really want to chew up all your HTTP
connctions with a hell of a lot of
IG wrote:
I've spent the last couple of hours trying to work this out to no avail.
I have recently moved over to a managed dedi server and no can ask my
host to change my php.ini.
I have found out that the 'display_errors' in the php.ini is set to off
and error file logging is off.
I
Rafael [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
P.S. What, in your mind, is the advantage of replying after quoting the
original message and not before? :)
In an NG environment, it allows everyone to follow the logic and see clearly
what is being replied to, in the correct
On Sat, 2006-04-29 at 03:17, Richard Lynch wrote:
I'll also respond to another poster:
I personally have no less/more ease in aligning } with a logic
statement or with another {, *IF* the code is indented properly.
In other words, the vertical alignment is more a function of the
Mariano Guadagnini wrote:
Mariano Guadagnini wrote:
Hi people,
I have the following issue: I´m using PHP 5 on IIS 5 and Windows XP
Pro, and when trying to pass values through the path to my scripts,
iis rejects them. After some googling, I found an advice to set
On Sat, 2006-04-29 at 03:17, Richard Lynch wrote:
I'll also respond to another poster:
I personally have no less/more ease in aligning } with a logic
statement or with another {, *IF* the code is indented properly.
In other words, the vertical alignment is more a function of the
indentation,
At 4:54 AM -0500 4/29/06, Richard Lynch wrote:
But trying to force JS - PHP communication the way you are
describing it is only going to make you very unhappy in the long run.
Been to that dance more than once. But, as Dirty Harry once said A
man's got to know his limitations.
Thanks for
Thanks for your reply. Paul Novitski already talked with me about it
(in private), and my conclusions were...
-
I guess that has something to do with the way *I* read my mails, since
I'm usually aware what people are talking about (since I've wrote the
one they're responding, or I've
At 2:12 AM -0500 4/29/06, Richard Lynch wrote:
But I'm totally serious here -- I made this decision in college circa
1981, and I wrote the same long program both ways, and hung the two
versions up on the wall side-by-side, and I liked the one with { on
the same lines better.
I even solicited my
A brace on its own line doesn't make sense to me.
Satyam
As the old lady said, as she kissed the cow To each their own.
It make perfect sense to me to enclose all blocks of code within
braces on their own line AND to indent that entire segment, like so.
function, if, while, switch,
Dave Goodchild wrote:
All my variables are correctly delimited.
strings constants are delimited not variables, semantically speaking.
And don't make assumptions about what my code looks like
why not? besides how are you going to stop someone from assuming your
code looks like [x]?
- I am
Hello, 1st msg here so im excited what results i will get :)
Im a novice with php parsing and have been able to help myself quite well with
what ive needed with xml_parse_into_struct and then echoing the fixed variable
names but now im dealing with an xml document that is 1st quite large and
Thanks,
But this example seems to be short and does the job :
?php
$String='this is a test expression for search input';
$MyRegEx = '/[^]+|[^\s,]+/';
preg_match_all($MyRegEx, $String, $Tokens);
?
Unless I'm missing something?
thanks
-Original Message-
From: Richard Lynch
Hi:
A summation of entries.
http://xn--ovg.com/a/parse.php
neat!
tedd
--
http://sperling.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi normally,
tedd wrote:
At 9:03 AM +0200 4/28/06, Barry wrote:
tedd schrieb:
At 5:09 PM +0200 4/27/06, Barry wrote:
tedd schrieb:
Hi gang:
Gang?
Gang, group, clan, community, organization, hive, pod, assembly,
biocenosis -- what do you want to be called?
By my name normally.
At 8:44 PM +0200 4/28/06, Jochem Maas wrote:
RANTING SEASON HAS OPENED - lets shoot some wabbits.
has anyone else noticed?? all our jobs go to India and now they are starting
to hire us back. (because they don't have the skills? and probably at rates
that equate to being able to buy 1 cheese
Use cURL I found it much easier then using fsockopen
http://ca.php.net/cURL
Richard Lynch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Sat, April 29, 2006 3:53 am, suresh kumar wrote:
input type=hidden name=item_name
value=Subscribe to Additional User Account
One more thing, make sure you validate ALL data that is being sent from
paypal to ensure what you need and expect are therealso validate the
transaction ID to ensure it was never used before.
Stephen Lake [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Use cURL I found it much
Greetings All,
Where can I find a good tutorial on creating a login protected area
using php? I did a Google search and found a couple but, I would like to
get suggestions from the list. Thanks!
--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
At 10:46 AM 4/29/2006, tedd wrote:
...
I have found it is simply a waste of my time to try to find
profitable common ground. They are concerned with one thing, and one
thing only, and that is how cheap can they get it -- and they seldom
have a clue as to what it is -- but, contrary to their
Hear hear. This is not the place for this kind of poison. Open source - open
mind.
On 29/04/06, Paul Novitski [EMAIL PROTECTED] wrote:
At 10:46 AM 4/29/2006, tedd wrote:
...
I have found it is simply a waste of my time to try to find
profitable common ground. They are concerned with one thing,
2006/4/29, Smart Software [EMAIL PROTECTED]:
code below shows all records from products table with an textbox and an
order button for each record
? $query1 = mysql_query(SELECT * FROM products );
while ($rowType = mysql_fetch_array($query1))
{ ?
table width=500 border=0
tr class=largeheader
That's ok, but then I can't help you more than I tried to.
Just check with what I told you about debug_backtrace(), at least that way
you can trace where the function was called with wrong arguments.
2006/4/29, Dave Goodchild [EMAIL PROTECTED]:
Misleading to who? I own the app and am the only
On Sat, April 29, 2006 11:19 am, [EMAIL PROTECTED] wrote:
Im a novice with php parsing and have been able to help myself quite
well with what ive needed with xml_parse_into_struct and then echoing
In an ideal world, you would examine other XML parsing options, such
as the PEAR library.
If,
On Sat, April 29, 2006 11:11 am, Jochem Maas wrote:
Dave Goodchild wrote:
All my variables are correctly delimited.
strings constants are delimited not variables, semantically speaking.
Not to mention that they CANNOT be correctly delimited, or you would
NOT be seeing that error message.
2006/4/29, Smart Software [EMAIL PROTECTED]:
How can i add the content of the textbox?
i tried this:
td width=40% a href=? echo
products.php?cat=$catquantity=$quantitytoevoegen=1id=$rowType[7];
?img src=images/bestel1.gif border=0/a/td
but all i get is an error telling me there is a
On Sat, April 29, 2006 5:42 am, Smart Software wrote:
code below shows all records from products table with an textbox and
an
order button for each record
How can i add the content of the textbox?
i tried this:
td width=40% a href=? echo
On Sat, April 29, 2006 9:56 am, Satyam wrote:
The compiler cannot read
indentations.
So, since the brace is for the benefit of the compiler, not mine, I
[pedantic]
Actually, a compiler could use indentation, and, in fact, compilers
for some languages do just that.
[/pedantic]
That style of
At 03:19 AM 4/29/2006, Robert Cummings wrote:
On Sat, 2006-04-29 at 02:08, Paul Novitski wrote:
IMHO, vertical aligned brackets can be messy when nesting
relatively-small blocks (and seems to me like a lot of wasted space)
nsip
like a use, not a waste.
OK, OK, I'll stop. Think
[EMAIL PROTECTED] wrote:
Hello, 1st msg here so im excited what results i will get :)
Im a novice with php parsing and have been able to help myself quite well
with what ive needed with xml_parse_into_struct and then echoing the fixed
variable names but now im dealing with an xml document
LOL It's interesting that you've taked your time and build that
'summation', maybe the only thing is missing is the code itself ;)
Now, because you didn't add it, I had to check the different versions,
and I agree with John Hicks, his suggestion seems to be the best one.
tedd wrote:
A
On Sat, 2006-04-29 at 10:56, Satyam wrote:
A brace on its own line doesn't make sense to me.
This begs the question... Where do you place the closing brace?
Cheers,
Rob.
--
..
| InterJinn Application Framework -
Mattias Thorslund wrote:
[EMAIL PROTECTED] wrote:
Hello, 1st msg here so im excited what results i will get :)
Im a novice with php parsing and have been able to help myself quite well with
what ive needed with xml_parse_into_struct and then echoing the fixed variable
names but now im
On 4/30/06, Schalk [EMAIL PROTECTED] wrote:
Greetings All,
Where can I find a good tutorial on creating a login protected area
using php? I did a Google search and found a couple but, I would like to
get suggestions from the list. Thanks!
Just found a good one.. it's a little more complicated
chris smith wrote:
On 4/30/06, Schalk [EMAIL PROTECTED] wrote:
Greetings All,
Where can I find a good tutorial on creating a login protected area
using php? I did a Google search and found a couple but, I would like to
get suggestions from the list. Thanks!
Just found a good one.. it's a
is there a easy way of converting an xml REST result to an object
returned by a SOAP call?
I know I can simply parse the REST and put it in a hash, curious if
there's a method of doing this.
simplexml_load_string() seems to give me simplexml objects inside my
multi-level hash, which isn't
[snip]
Hey Jay! We run linux here... you could leave your Windows world again!
:)
[/snip]
Thanks, but I have to stay where I am for a while. Sounds like an
interesting project though...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yah, and why are people still mindlessly clicking OK to install ActiveX plugins?
On 4/27/06, Porpoise [EMAIL PROTECTED] wrote:
Gerry D [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Interesting discussions... :)
I see two issues:
1. if you are exposing php scripts to the client,
Warning: var_dump() [function.var-dump]: Node no longer exists in
Foo.php on line 78
object(SimpleXMLElement)#86 (0) { } [title]=
I turn an xml string into a simplexml object, and then ran serialize()
on it before caching the output locally. When I read it back in and
run unserialize() to do a
[snip]
...interesting conversation...
[/snip]
Stateless applications, ain't they fun?
I did a little experiment before Ajax cam into vogue with a small PHP
script that essentially ran a while loop with some sleep cycles built
in. This was placed in an iframe and another page was placed in
René Fournier wrote:
Anyone find any good tutorials, code samples, etc. on such a thing?
Basically, I want to write server (in PHP) that listeners on a
particular port, and spins off a thread/process (essentially, execute
a separate script) for each incoming connection. There won't be a lot
So no matter what was actually typed, *I* would see:
function foo ($x) {
//body
}
but some heretic who doesn't know any better would see:
function foo($x)
{
//body
}
Now *THAT* would be a feature worth paying for in an IDE! :-)
Without caring what style you prefer, the correct
[EMAIL PROTECTED] escribió:
Hello, 1st msg here so im excited what results i will get :)
Im a novice with php parsing and have been able to help myself quite well with
what ive needed with xml_parse_into_struct and then echoing the fixed variable
names but now im dealing with an xml document
74 matches
Mail list logo